diff mbox

intel_idle: Do not load if user overrides idle function via idle= boot param

Message ID 201011021441.09258.trenn@suse.de (mailing list archive)
State New, archived
Headers show

Commit Message

Thomas Renninger Nov. 2, 2010, 1:41 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/idle/intel_idle.c b/drivers/idle/intel_idle.c
index 41665d2..e50389b 100644
--- a/drivers/idle/intel_idle.c
+++ b/drivers/idle/intel_idle.c
@@ -410,6 +410,9 @@  static int __init intel_idle_init(void)
 {
 	int retval;
 
+	if (boot_option_idle_override)
+		return -ENODEV;
+
 	retval = intel_idle_probe();
 	if (retval)
 		return retval;