powerpc/powermac: Use set_hard_smp_processor_id() instead of smp_hw_index
authorNathan Lynch <ntl@pobox.com>
Wed, 10 Dec 2008 14:28:42 +0000 (14:28 +0000)
committerPaul Mackerras <paulus@samba.org>
Tue, 16 Dec 2008 04:53:09 +0000 (15:53 +1100)
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>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/powermac/smp.c

index 40f72c2a4699f101dbe90f17abbb2e0d31ab54fd..6b0711c15ecaf9ad506e6b9dfd8eec61677dd978 100644 (file)
@@ -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