diff options
author | Florian Fainelli <florian.fainelli@broadcom.com> | 2024-05-06 20:50:40 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-05-08 02:42:45 +0300 |
commit | 0d5044b4e7749099b12da5f2c8618f04bb4fa82f (patch) | |
tree | e1cb983547408911f526a80a02b34343ca5afff6 /lib/dim/dim.c | |
parent | 445c0b69c72903528fdf0b34015b5b9142062c4b (diff) | |
download | linux-0d5044b4e7749099b12da5f2c8618f04bb4fa82f.tar.xz |
lib: Allow for the DIM library to be modular
Allow the Dynamic Interrupt Moderation (DIM) library to be built as a
module. This is particularly useful in an Android GKI (Google Kernel
Image) configuration where everything is built as a module, including
Ethernet controller drivers. Having to build DIMLIB into the kernel
image with potentially no user is wasteful.
Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Link: https://lore.kernel.org/r/20240506175040.410446-1-florian.fainelli@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'lib/dim/dim.c')
-rw-r--r-- | lib/dim/dim.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/dim/dim.c b/lib/dim/dim.c index e89aaf07bde5..83b65ac74d73 100644 --- a/lib/dim/dim.c +++ b/lib/dim/dim.c @@ -82,3 +82,6 @@ bool dim_calc_stats(struct dim_sample *start, struct dim_sample *end, return true; } EXPORT_SYMBOL(dim_calc_stats); + +MODULE_DESCRIPTION("Dynamic Interrupt Moderation (DIM) library"); +MODULE_LICENSE("Dual BSD/GPL"); |