From: Mark Hambleton mark.hambleton@arm.com
Remove unused variable referenced from commented out code.
Fixes warning caused by commit df99953c42c6 ("cpuidle: governor: menu: don't use loadavg")
Signed-off-by: Mark Hambleton mark.hambleton@arm.com Signed-off-by: Jon Medhurst tixy@linaro.org --- drivers/cpuidle/governors/menu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/cpuidle/governors/menu.c b/drivers/cpuidle/governors/menu.c index 33305fb..9924ea20 100644 --- a/drivers/cpuidle/governors/menu.c +++ b/drivers/cpuidle/governors/menu.c @@ -126,6 +126,7 @@ struct menu_device { #define LOAD_INT(x) ((x) >> FSHIFT) #define LOAD_FRAC(x) LOAD_INT(((x) & (FIXED_1-1)) * 100)
+#if 0 static int get_loadavg(void) { unsigned long this = this_cpu_load(); @@ -133,7 +134,7 @@ static int get_loadavg(void)
return LOAD_INT(this) * 10 + LOAD_FRAC(this) / 10; } - +#endif static inline int which_bucket(unsigned int duration) { int bucket = 0;