From: Hollis Blanchard <hollis_blanchard@mentor.com>
To: benh@kernel.crashing.org
Cc: openmcapi-dev@googlegroups.com,
Andrew Gabbasov <andrew_gabbasov@mentor.com>,
linuxppc-dev@lists.ozlabs.org
Subject: Re: [openmcapi-dev] [PATCH] powerpc: Exporting boot_cpuid_phys
Date: Fri, 22 Jul 2011 12:11:20 -0700 [thread overview]
Message-ID: <4E29CB58.10103@mentor.com> (raw)
In-Reply-To: <4E219085.8000709@mentor.com>
On 07/16/2011 06:22 AM, Andrew Gabbasov wrote:
> Kernel loadable module can use hard_smp_processor_id() if building with SMP
> kernel. In order to make it work for UP kernels too, boot_cpuid_phys
> symbol (which is what hard_smp_processor_id() macro resolves to
> in non-SMP configuration) must be exported.
>
> Signed-off-by: Andrew Gabbasov<andrew_gabbasov@mentor.com>
> ---
> arch/powerpc/kernel/setup_32.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/arch/powerpc/kernel/setup_32.c b/arch/powerpc/kernel/setup_32.c
> index 1d2fbc9..3dffce6 100644
> --- a/arch/powerpc/kernel/setup_32.c
> +++ b/arch/powerpc/kernel/setup_32.c
> @@ -49,6 +49,7 @@ extern void bootx_init(unsigned long r4, unsigned long phys);
> int boot_cpuid = -1;
> EXPORT_SYMBOL_GPL(boot_cpuid);
> int boot_cpuid_phys;
> +EXPORT_SYMBOL_GPL(boot_cpuid_phys);
>
> int smp_hw_index[NR_CPUS];
Ben, ping?
Hollis Blanchard
Mentor Graphics, Embedded Systems Division
next prev parent reply other threads:[~2011-07-22 19:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-16 13:22 [PATCH] powerpc: Exporting boot_cpuid_phys Andrew Gabbasov
2011-07-22 19:11 ` Hollis Blanchard [this message]
2011-07-22 20:28 ` [openmcapi-dev] " Kumar Gala
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=4E29CB58.10103@mentor.com \
--to=hollis_blanchard@mentor.com \
--cc=andrew_gabbasov@mentor.com \
--cc=benh@kernel.crashing.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=openmcapi-dev@googlegroups.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).