projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0da5f81
)
cpuidle: governor: menu: fix unused function warning
author
Amit Pundir
<amit.pundir@linaro.org>
Thu, 16 Apr 2015 12:41:20 +0000
(18:11 +0530)
committer
Amit 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
patch
|
blob
|
history
diff --git
a/drivers/cpuidle/governors/menu.c
b/drivers/cpuidle/governors/menu.c
index c42a8a11b86053f5e9213308bfdaf1e3e1945962..b26bdcb59cb9d283e31326642c8fe421ff21050a 100644
(file)
--- a/
drivers/cpuidle/governors/menu.c
+++ b/
drivers/cpuidle/governors/menu.c
@@
-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();