]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] add smp_setup_processor_id()
authorAndrew Morton <akpm@osdl.org>
Fri, 30 Jun 2006 08:55:50 +0000 (01:55 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 30 Jun 2006 18:25:37 +0000 (11:25 -0700)
commit033ab7f8e5c655f49ec8039930b2efd412abbbd7
tree33fd8073e47d88731380d97be8ecdbdbd69b459e
parenta1836a42daf5ddfe9a891973734bd9a7d62eb504
[PATCH] add smp_setup_processor_id()

Presently, smp_processor_id() isn't necessarily set up until setup_arch().
But it's used in boot_cpu_init() and printk() and perhaps in other places,
prior to setup_arch() being called.

So provide a new smp_setup_processor_id() which is called before anything
else, wire it up for Voyager (which boots on a CPU other than #0, and broke).

Cc: James Bottomley <James.Bottomley@steeleye.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/mach-voyager/voyager_smp.c
include/linux/smp.h
init/main.c