Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753812AbYJUB6I (ORCPT ); Mon, 20 Oct 2008 21:58:08 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751890AbYJUB5z (ORCPT ); Mon, 20 Oct 2008 21:57:55 -0400 Received: from vms173003pub.verizon.net ([206.46.173.3]:57892 "EHLO vms173003pub.verizon.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751346AbYJUB5y (ORCPT ); Mon, 20 Oct 2008 21:57:54 -0400 Date: Mon, 20 Oct 2008 21:57:28 -0400 (EDT) From: Len Brown Subject: Re: [PATCH 1/2] x86: allow module driver to register idle notifier In-reply-to: X-X-Sender: lenb@localhost.localdomain To: Ingo Molnar Cc: linux-acpi@vger.kernel.org, Linux Kernel Mailing List , Venki Pallipadi , Andy Henroid , Len Brown , Linus Torvalds , Thomas Gleixner , "H. Peter Anvin" , Andi Kleen 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: 1458 Lines: 48 Ingo, How shall we proceed? If you take this patch, we can ship a modular i7300_idle driver. If you do not take this patch, then we'll need to build it into the kernel and not allow it to un-register. thanks, -Len On Thu, 16 Oct 2008, Len Brown wrote: > From: Venkatesh Pallipadi > > needed if the i7300_idle driver is to be a module. > > Signed-off-by: Venkatesh Pallipadi > Signed-off-by: Len Brown > --- > arch/x86/kernel/process_64.c | 7 +++++++ > 1 files changed, 7 insertions(+), 0 deletions(-) > > diff --git a/arch/x86/kernel/process_64.c b/arch/x86/kernel/process_64.c > index e12e0e4..3e3d503 100644 > --- 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); > > void enter_idle(void) > { > -- > 1.6.0.2.532.g84ed4c > > -- 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/