Messages in this thread Patch in this message | | | From | Daniel Lezcano <> | Subject | [PATCH 1/5] cpuidle: Remove pointless stub | Date | Thu, 15 Oct 2020 16:44:27 +0200 |
| |
The cpuidle.h header is declaring functions with an empty stub when cpuidle is not enabled. However these functions are only called from the governors which depends on cpuidle. In other words, when the function is called it is when cpuidle is enabled, there is no situation when it is called with cpuidle disabled.
Remove the pointless stub.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> --- include/linux/cpuidle.h | 5 ----- 1 file changed, 5 deletions(-)
diff --git a/include/linux/cpuidle.h b/include/linux/cpuidle.h index 6175c77bf25e..74fdcc6106b1 100644 --- a/include/linux/cpuidle.h +++ b/include/linux/cpuidle.h @@ -270,13 +270,8 @@ struct cpuidle_governor { void (*reflect) (struct cpuidle_device *dev, int index); }; -#ifdef CONFIG_CPU_IDLE extern int cpuidle_register_governor(struct cpuidle_governor *gov); extern s64 cpuidle_governor_latency_req(unsigned int cpu); -#else -static inline int cpuidle_register_governor(struct cpuidle_governor *gov) -{return 0;} -#endif #define __CPU_PM_CPU_IDLE_ENTER(low_level_idle_enter, \ idx, \ -- 2.17.1
| |