Browse Source

powerpc/powermac: Use set_hard_smp_processor_id() instead of smp_hw_index

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>
Nathan Lynch 16 years ago
parent
commit
6ff04c53db
1 changed files with 1 additions and 1 deletions
  1. 1 1
      arch/powerpc/platforms/powermac/smp.c

+ 1 - 1
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 */
 		/* XXX should get this from reg properties */
 		for (i = 1; i < ncpus; ++i)
 		for (i = 1; i < ncpus; ++i)
-			smp_hw_index[i] = i;
+			set_hard_smp_processor_id(i, i);
 	}
 	}
 #endif
 #endif