Re: [PATCH] intel_idle: Do not load if user overrides idle function via idle= boot param

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2 Nov 2010, Thomas Renninger wrote:
> 
> 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

idle=halt and idle=nomwait will not
set boot_option_idle_override,
so checking that option in intel_idle
is a NOP for those incantations.

idle_setup() is a confusing mess.
That function and all these idle workaround flags
need to be re-whacked.

thanks,
-Len Brown, Intel Open Source Technology Center

> Signed-off-by: Thomas Renninger <trenn@xxxxxxx>
> CC: lenb@xxxxxxxxxx
> CC: linux-acpi@xxxxxxxxxxxxxxx
> CC: stable@xxxxxxxxxx
> CC: linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx                                                                                                                               
>  
> 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;
> 
_______________________________________________
linux-pm mailing list
linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/linux-pm


[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux