Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756674Ab1CaGjU (ORCPT ); Thu, 31 Mar 2011 02:39:20 -0400 Received: from e23smtp07.au.ibm.com ([202.81.31.140]:36295 "EHLO e23smtp07.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751906Ab1CaGjT (ORCPT ); Thu, 31 Mar 2011 02:39:19 -0400 Message-ID: <4D942191.2080408@linux.vnet.ibm.com> Date: Thu, 31 Mar 2011 12:09:13 +0530 From: Trinabh Gupta User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.10) Gecko/20100621 Fedora/3.0.5-1.fc11 Thunderbird/3.0.5 MIME-Version: 1.0 To: Len Brown CC: x86@kernel.org, linux-pm@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [linux-pm] [PATCH 0/9] x86 idle cruft removal - v2 References: <1300950508-22746-1-git-send-email-lenb@kernel.org> <1301551404-8263-1-git-send-email-lenb@kernel.org> In-Reply-To: <1301551404-8263-1-git-send-email-lenb@kernel.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2798 Lines: 69 On 03/31/2011 11:33 AM, Len Brown wrote: > unchanged: > > [PATCH 1/9] x86 idle: remove "no-hlt" cmdline param > [PATCH 2/9] x86 idle: remove NOP cpuinfo_x86.hlt_works_ok flag > [PATCH 3/9] x86 idle: remove NOP halt_works() > [PATCH 4/9] x86 idle floppy: delete disable_hlt()/enable_hlt() > [PATCH 5/9] x86 idle: remove NOP hlt_use_halt() > > new: > > [PATCH 6/9] x86 idle APM: delete apm_cpu_idle(), and its use of pm_idle > [PATCH 7/9] x86 idle: do not EXPORT_SYMBOL pm_idle and default_idle > [PATCH 8/9] x86 idle: move mwait_idle_with_hints() to where it is used > [PATCH 9/9] x86 idle: delete mwait_idle() > > > Documentation/kernel-parameters.txt | 11 +-- > arch/x86/Kconfig | 11 -- > arch/x86/include/asm/processor.h | 14 +-- > arch/x86/include/asm/system.h | 7 - > arch/x86/kernel/acpi/cstate.c | 24 ++++ > arch/x86/kernel/apm_32.c | 232 ----------------------------------- > arch/x86/kernel/cpu/bugs.c | 13 +-- > arch/x86/kernel/cpu/proc.c | 2 - > arch/x86/kernel/process.c | 127 +++----------------- > arch/x86/kernel/setup.c | 4 +- > arch/x86/xen/setup.c | 3 - > drivers/acpi/processor_idle.c | 1 - > drivers/block/floppy.c | 35 ------ > 13 files changed, 45 insertions(+), 439 deletions(-) > > What is next: > > handle c1e_idle() vs default_idle() > run-time check for AMD workaround enable as part of default_idle? > give xen_arch_setup default_idle() w/o having it touch pm_idle > perhaps it can simply set a flag to disable cpuidle... > which is what would run if the xen kernel were > booted on raw iron. Or can we handle this > at compile time? I guess it may be good to have a method to override cpuidle and force it to call default_idle from inside cpuidle_idle_call(). This could be useful for users other than xen in future. Ofcourse this override should not touch pm_idle (which would be removed anyway). Provision is already there to call default_idle from inside cpuidle_idle_call(); we can use that after checking a flag?? Can we use something like boot_option_idle_override? Or set/unset flag through an API? > delete pm_idle > x86 will then use default_idle or cpuidle > allow cpuidle to use default_idle to handle the period > where it polls because cpus have not yet registered If we remove pm_idle and directly call cpuidle, the check already exists to call default_idle until a cpuidle driver (and cpus) is registered. -Trinabh -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/