From: Avi Kivity <avi@qumranet.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: Andrew Morton <akpm@osdl.org>, linux-kernel@vger.kernel.org
Subject: Re: [patch] KVM, hotplug: export register_cpu_notifier
Date: Wed, 07 Feb 2007 11:12:17 +0200 [thread overview]
Message-ID: <45C997F1.9060102@qumranet.com> (raw)
In-Reply-To: <20070207081633.GA6723@elte.hu>
Ingo Molnar wrote:
> Subject: [patch] KVM, hotplug: export register_cpu_notifier
> From: Ingo Molnar <mingo@elte.hu>
>
> KVM-trunk uses register_cpu_notifier() but it's a module and we only
> export this if CONFIG_HOTPLUG_CPU. Export it otherwise too.
>
> Signed-off-by: Ingo Molnar <mingo@elte.hu>
> ---
> kernel/cpu.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> Index: linux/kernel/cpu.c
> ===================================================================
> --- linux.orig/kernel/cpu.c
> +++ linux/kernel/cpu.c
> @@ -75,10 +75,10 @@ int __cpuinit register_cpu_notifier(stru
> return ret;
> }
>
> -#ifdef CONFIG_HOTPLUG_CPU
> -
> EXPORT_SYMBOL(register_cpu_notifier);
>
> +#ifdef CONFIG_HOTPLUG_CPU
> +
> void unregister_cpu_notifier(struct notifier_block *nb)
> {
> mutex_lock(&cpu_add_remove_lock);
>
This is broken: register_cpu_notifier() is __cpuinit, which means it
disappears at module time if !CONFIG_CPU_HOTPLUG.
I submitted a hackaround to Andrew some time ago with the suspend patchset.
--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
next prev parent reply other threads:[~2007-02-07 9:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-07 8:16 [patch] KVM, hotplug: export register_cpu_notifier Ingo Molnar
2007-02-07 9:12 ` Avi Kivity [this message]
2007-02-07 9:19 ` Ingo Molnar
2007-02-07 9:34 ` Avi Kivity
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45C997F1.9060102@qumranet.com \
--to=avi@qumranet.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox