summaryrefslogtreecommitdiffstats
path: root/include/linux/cpuidle.h
diff options
context:
space:
mode:
authorThomas Renninger <trenn@suse.de>2012-01-17 22:40:08 +0100
committerLen Brown <len.brown@intel.com>2012-01-17 23:59:12 -0500
commit65b7f839ceecc0a36c7969c0c9151d5748cd4242 (patch)
treefd98dd21fafcbeec668bbc2e61812b65bee7919e /include/linux/cpuidle.h
parent3bd81a8710710f8bf5d1a5ebac315c842c20bdd3 (diff)
downloadop-kernel-dev-65b7f839ceecc0a36c7969c0c9151d5748cd4242.zip
op-kernel-dev-65b7f839ceecc0a36c7969c0c9151d5748cd4242.tar.gz
intel_idle: Split up and provide per CPU initialization func
Function split up, should have no functional change. Provides entry point for physically hotplugged CPUs to initialize and activate cpuidle. Signed-off-by: Thomas Renninger <trenn@suse.de> CC: Deepthi Dharwar <deepthi@linux.vnet.ibm.com> CC: Shaohua Li <shaohua.li@intel.com> CC: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include/linux/cpuidle.h')
-rw-r--r--include/linux/cpuidle.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/cpuidle.h b/include/linux/cpuidle.h
index 7408af8..93df66e 100644
--- a/include/linux/cpuidle.h
+++ b/include/linux/cpuidle.h
@@ -188,7 +188,14 @@ struct cpuidle_governor {
extern int cpuidle_register_governor(struct cpuidle_governor *gov);
extern void cpuidle_unregister_governor(struct cpuidle_governor *gov);
+#ifdef CONFIG_INTEL_IDLE
+extern int intel_idle_cpu_init(int cpu);
#else
+static inline int intel_idle_cpu_init(int cpu) { return -1; }
+#endif
+
+#else
+static inline int intel_idle_cpu_init(int cpu) { return -1; }
static inline int cpuidle_register_governor(struct cpuidle_governor *gov)
{return 0;}
OpenPOWER on IntegriCloud