summaryrefslogtreecommitdiff
path: root/drivers/cpuidle/cpuidle.h
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2011-04-01 22:13:10 (GMT)
committerLen Brown <len.brown@intel.com>2011-08-03 23:06:36 (GMT)
commit62027aea23fcd14478abdddd3b74a4e0f5fb2984 (patch)
tree1aaa5c1872e296f3448ae6c126175ac9d998e3b4 /drivers/cpuidle/cpuidle.h
parent6dccf9c508d5d773859df1cc2dce75c5b19e35a0 (diff)
downloadlinux-fsl-qoriq-62027aea23fcd14478abdddd3b74a4e0f5fb2984.tar.xz
cpuidle: create bootparam "cpuidle.off=1"
useful for disabling cpuidle to fall back to architecture-default idle loop cpuidle drivers and governors will fail to register. on x86 they'll say so: intel_idle: intel_idle yielding to (null) ACPI: acpi_idle yielding to (null) Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/cpuidle/cpuidle.h')
-rw-r--r--drivers/cpuidle/cpuidle.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/cpuidle/cpuidle.h b/drivers/cpuidle/cpuidle.h
index 33e50d5..38c3fd8 100644
--- a/drivers/cpuidle/cpuidle.h
+++ b/drivers/cpuidle/cpuidle.h
@@ -13,6 +13,7 @@ extern struct list_head cpuidle_governors;
extern struct list_head cpuidle_detected_devices;
extern struct mutex cpuidle_lock;
extern spinlock_t cpuidle_driver_lock;
+extern int cpuidle_disabled(void);
/* idle loop */
extern void cpuidle_install_idle_handler(void);