* [PATCH] powermac: use set_hard_smp_processor_id() instead of smp_hw_index
@ 2008-12-11 0:28 Nathan Lynch
2008-12-11 5:20 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 2+ messages in thread
From: Nathan Lynch @ 2008-12-11 0:28 UTC (permalink / raw)
To: linuxppc-dev
The hard_smp_processor_id functions are the appropriate interfaces for
managing physical CPU ids.
Signed-off-by: Nathan Lynch <ntl@pobox.com>
---
arch/powerpc/platforms/powermac/smp.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/powerpc/platforms/powermac/smp.c b/arch/powerpc/platforms/powermac/smp.c
index 40f72c2..6b0711c 100644
--- a/arch/powerpc/platforms/powermac/smp.c
+++ b/arch/powerpc/platforms/powermac/smp.c
@@ -739,7 +739,7 @@ static void __init smp_core99_setup(int ncpus)
/* XXX should get this from reg properties */
for (i = 1; i < ncpus; ++i)
- smp_hw_index[i] = i;
+ set_hard_smp_processor_id(i, i);
}
#endif
--
1.5.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] powermac: use set_hard_smp_processor_id() instead of smp_hw_index
2008-12-11 0:28 [PATCH] powermac: use set_hard_smp_processor_id() instead of smp_hw_index Nathan Lynch
@ 2008-12-11 5:20 ` Benjamin Herrenschmidt
0 siblings, 0 replies; 2+ messages in thread
From: Benjamin Herrenschmidt @ 2008-12-11 5:20 UTC (permalink / raw)
To: Nathan Lynch; +Cc: linuxppc-dev
On Wed, 2008-12-10 at 18:28 -0600, Nathan Lynch wrote:
> The hard_smp_processor_id functions are the appropriate interfaces for
> managing physical CPU ids.
>
> Signed-off-by: Nathan Lynch <ntl@pobox.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
---
> ---
> arch/powerpc/platforms/powermac/smp.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/powerpc/platforms/powermac/smp.c b/arch/powerpc/platforms/powermac/smp.c
> index 40f72c2..6b0711c 100644
> --- a/arch/powerpc/platforms/powermac/smp.c
> +++ b/arch/powerpc/platforms/powermac/smp.c
> @@ -739,7 +739,7 @@ static void __init smp_core99_setup(int ncpus)
>
> /* XXX should get this from reg properties */
> for (i = 1; i < ncpus; ++i)
> - smp_hw_index[i] = i;
> + set_hard_smp_processor_id(i, i);
> }
> #endif
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-12-11 5:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-11 0:28 [PATCH] powermac: use set_hard_smp_processor_id() instead of smp_hw_index Nathan Lynch
2008-12-11 5:20 ` Benjamin Herrenschmidt
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).