[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20201015144431.9979-1-daniel.lezcano@linaro.org>
Date: Thu, 15 Oct 2020 16:44:27 +0200
From: Daniel Lezcano <daniel.lezcano@...aro.org>
To: daniel.lezcano@...aro.org, rjw@...ysocki.net
Cc: linux-kernel@...r.kernel.org, linux-pm@...r.kernel.org,
ilina@...eaurora.org
Subject: [PATCH 1/5] cpuidle: Remove pointless stub
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@...aro.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
Powered by blists - more mailing lists