All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] intel_idle: Do not load if user overrides idle function via idle= boot param
@ 2010-11-02 13:41 Thomas Renninger
  2010-11-03  6:33 ` Len Brown
  2010-11-03  6:33 ` Len Brown
  0 siblings, 2 replies; 10+ messages in thread
From: Thomas Renninger @ 2010-11-02 13:41 UTC (permalink / raw)
  To: Len Brown; +Cc: linux-acpi, linux-pm, stable

Hi Len,

I found that by review, it's compile tested only.
Could you give this a review and apply if appropriate.

Thanks,

     Thomas

----

if idle= boot param is passed, cpuidle drivers should not register
and only arch specific idle routines should get active.

Ideally cpuidle subsystem would be made aware of this.
But acpi parses sleep state tables before registering for cpuidle
which should not happen if idle= is passed.

-> Check for boot_option_idle_override in cpuidle drivers, not
cpuidle subsystem.

Compare with:
arch/x86/kernel/process.c
and
drivers/acpi/processor_idle.c

Signed-off-by: Thomas Renninger <trenn@suse.de>
CC: lenb@kernel.org
CC: linux-acpi@vger.kernel.org
CC: stable@kernel.org
CC: linux-pm@lists.linux-foundation.org                                                                                                                               
 
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;

^ permalink raw reply related	[flat|nested] 10+ messages in thread
* [PATCH] intel_idle: Do not load if user overrides idle function via idle= boot param
@ 2010-11-02 13:41 Thomas Renninger
  0 siblings, 0 replies; 10+ messages in thread
From: Thomas Renninger @ 2010-11-02 13:41 UTC (permalink / raw)
  To: Len Brown; +Cc: linux-acpi, linux-pm, stable

Hi Len,

I found that by review, it's compile tested only.
Could you give this a review and apply if appropriate.

Thanks,

     Thomas

----

if idle= boot param is passed, cpuidle drivers should not register
and only arch specific idle routines should get active.

Ideally cpuidle subsystem would be made aware of this.
But acpi parses sleep state tables before registering for cpuidle
which should not happen if idle= is passed.

-> Check for boot_option_idle_override in cpuidle drivers, not
cpuidle subsystem.

Compare with:
arch/x86/kernel/process.c
and
drivers/acpi/processor_idle.c

Signed-off-by: Thomas Renninger <trenn@suse.de>
CC: lenb@kernel.org
CC: linux-acpi@vger.kernel.org
CC: stable@kernel.org
CC: linux-pm@lists.linux-foundation.org                                                                                                                               
 
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;

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-01-12  6:22 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-02 13:41 [PATCH] intel_idle: Do not load if user overrides idle function via idle= boot param Thomas Renninger
2010-11-03  6:33 ` Len Brown
2010-11-03  6:33 ` Len Brown
2010-11-03 16:06   ` [PATCH] X86: Cleanup idle= internal variables by getting rid of idle_halt idle_nomwait Thomas Renninger
2010-11-03 16:06   ` Thomas Renninger
2010-11-05 10:24     ` Thomas Renninger
2011-01-12  6:22       ` Len Brown
2011-01-12  6:22       ` Len Brown
2010-11-05 10:24     ` Thomas Renninger
  -- strict thread matches above, loose matches on Subject: below --
2010-11-02 13:41 [PATCH] intel_idle: Do not load if user overrides idle function via idle= boot param Thomas Renninger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.