summaryrefslogtreecommitdiff
path: root/lib/dim/dim.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dim/dim.c')
-rw-r--r--lib/dim/dim.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/dim/dim.c b/lib/dim/dim.c
index e89aaf07bde5..97c3d084ebf0 100644
--- a/lib/dim/dim.c
+++ b/lib/dim/dim.c
@@ -54,7 +54,8 @@ void dim_park_tired(struct dim *dim)
}
EXPORT_SYMBOL(dim_park_tired);
-bool dim_calc_stats(struct dim_sample *start, struct dim_sample *end,
+bool dim_calc_stats(const struct dim_sample *start,
+ const struct dim_sample *end,
struct dim_stats *curr_stats)
{
/* u32 holds up to 71 minutes, should be enough */
@@ -82,3 +83,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");