cpuidle: governor: menu: fix unused function warning
authorAmit Pundir <amit.pundir@linaro.org>
Thu, 16 Apr 2015 12:41:20 +0000 (18:11 +0530)
committerAmit Pundir <amit.pundir@linaro.org>
Thu, 16 Apr 2015 12:41:20 +0000 (18:11 +0530)
Fixes warning caused by commit df99953c42c6 ("cpuidle: governor:
menu: don't use loadavg")

Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
drivers/cpuidle/governors/menu.c

index c42a8a11b86053f5e9213308bfdaf1e3e1945962..b26bdcb59cb9d283e31326642c8fe421ff21050a 100644 (file)
@@ -140,7 +140,7 @@ struct menu_device {
 #define LOAD_INT(x) ((x) >> FSHIFT)
 #define LOAD_FRAC(x) LOAD_INT(((x) & (FIXED_1-1)) * 100)
 
-static int get_loadavg(void)
+static int __maybe_unused get_loadavg(void)
 {
        unsigned long this = this_cpu_load();