From: Paul Mackerras <paulus@samba.org>
To: Nathan Fontenot <nfont@austin.ibm.com>
Cc: linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/3] sysfs cpu probe/release files
Date: Wed, 25 Nov 2009 14:20:03 +1100 [thread overview]
Message-ID: <19212.41571.997709.92207@cargo.ozlabs.ibm.com> (raw)
In-Reply-To: <4B0C8D46.1030206@austin.ibm.com>
Nathan Fontenot writes:
> Create new probe and release sysfs files to facilitate adding and removing
> cpus from the system. This also creates the powerpc specific stubs to handle
> the arch callouts from writes to the sysfs files.
>
> The creation and use of these files is regulated by the
> CONFIG_ARCH_CPU_PROBE_RELEASE option so that only architectures that need the
> capability will have the files created.
>
> Signed-off-by: Nathan Fontenot <nfont@austin.ibm.com>
> ---
> arch/powerpc/Kconfig | 4 ++++
> arch/powerpc/include/asm/machdep.h | 5 +++++
> arch/powerpc/kernel/sysfs.c | 19 +++++++++++++++++++
> drivers/base/cpu.c | 32 ++++++++++++++++++++++++++++++++
Since this touches drivers/base/cpu.c, you should cc Greg KH on this
patch and get an ack from him, assuming these patches are going in
through the powerpc tree.
> --- powerpc.orig/include/linux/cpu.h 2009-11-23 18:19:23.000000000 -0600
> +++ powerpc/include/linux/cpu.h 2009-11-24 14:30:07.000000000 -0600
> @@ -43,6 +43,10 @@
>
> #ifdef CONFIG_HOTPLUG_CPU
> extern void unregister_cpu(struct cpu *cpu);
> +#ifdef CONFIG_ARCH_CPU_PROBE_RELEASE
> +extern ssize_t arch_cpu_probe(const char *, size_t);
> +extern ssize_t arch_cpu_release(const char *, size_t);
> +#endif
Since these are just declarations, they don't need the #ifdef around
them.
Paul.
next prev parent reply other threads:[~2009-11-25 3:20 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-25 1:41 [PATCH 0/3] Kernel handling of Dynamic Logical Partitioning Nathan Fontenot
2009-11-25 1:48 ` [PATCH 1/3] Kernel DLPAR infrastructure Nathan Fontenot
2009-11-25 2:15 ` Michael Neuling
2009-11-25 3:03 ` Michael Neuling
2009-11-25 3:16 ` Paul Mackerras
2009-11-25 1:49 ` [PATCH 2/3] sysfs cpu probe/release files Nathan Fontenot
2009-11-25 3:20 ` Paul Mackerras [this message]
2009-11-25 1:53 ` [PATCH 3/3] CPU DLPAR handling Nathan Fontenot
2009-11-25 3:22 ` Paul Mackerras
2009-11-25 3:12 ` [PATCH 0/3] Kernel handling of Dynamic Logical Partitioning Paul Mackerras
2009-11-25 7:07 ` Nathan Fontenot
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=19212.41571.997709.92207@cargo.ozlabs.ibm.com \
--to=paulus@samba.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=nfont@austin.ibm.com \
/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;
as well as URLs for NNTP newsgroup(s).