Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755929AbYJOWct (ORCPT ); Wed, 15 Oct 2008 18:32:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753587AbYJOWcj (ORCPT ); Wed, 15 Oct 2008 18:32:39 -0400 Received: from vms172073pub.verizon.net ([206.46.172.73]:35144 "EHLO vms172073pub.verizon.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753797AbYJOWch (ORCPT ); Wed, 15 Oct 2008 18:32:37 -0400 Date: Wed, 15 Oct 2008 18:32:30 -0400 (EDT) From: Len Brown Subject: Re: [PATCH 53/85] i7300_idle driver v1.55 In-reply-to: <20081011083347.GA31918@elte.hu> X-X-Sender: lenb@localhost.localdomain To: Ingo Molnar Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, Venki Pallipadi , Andy Henroid , Len Brown , Linus Torvalds , Thomas Gleixner , "H. Peter Anvin" Message-id: MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII References: <1d80ebdb81444701024ad9b9f026516561496a43.1223706853.git.len.brown@intel.com> <20081011083347.GA31918@elte.hu> User-Agent: Alpine 1.10 (LFD 962 2008-03-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1849 Lines: 51 > > --- a/arch/x86/kernel/process_64.c > > +++ b/arch/x86/kernel/process_64.c > > @@ -62,6 +62,13 @@ void idle_notifier_register(struct notifier_block *n) > > { > > atomic_notifier_chain_register(&idle_notifier, n); > > } > > +EXPORT_SYMBOL_GPL(idle_notifier_register); > > + > > +void idle_notifier_unregister(struct notifier_block *n) > > +{ > > + atomic_notifier_chain_unregister(&idle_notifier, n); > > +} > > +EXPORT_SYMBOL_GPL(idle_notifier_unregister); > > hm, such x86 infrastructure changes should be submitted via the x86 > tree, and you should at least have Cc:-ed the maintainers. I agree that this patch did not hit the list in the conventional way. I apologize for that, and I thank you, Ingo, for noticing the patch. > The thing is, we are _getting rid_ of the idle notifiers, not extending > them. The last thing we need is random opaque stuff getting called in > weird ordering when we enter/exit idle state. We want all that be > visible and have explicit, in-source-code ordering. The patch on the table is basically a platform (chipset) idle hook. When the system is very idle, it saves energy in the memory sub-system. Linux customers are asking for this capability b/c it allows them to save energy and save money. We considered putting a platform hook into the cpuidle code, but it seemed simpler this way -- since the new platform hook would end up looking almost exactly like the idle notifier that we have already. So x86-wise, all we did here is expose the register/unregister so the driver can be modular. I'm certainly open to suggestions. thanks, -Len -- 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/