[S390] smp: setup smp_processor_id early
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 13 Jan 2010 19:44:34 +0000 (20:44 +0100)
committerMartin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>
Wed, 13 Jan 2010 19:44:45 +0000 (20:44 +0100)
commit02beaccc901b7a28ac1de79f3ed122f5fda220b1
tree77c36cd14b9ce1324ff6127a4bdb19e312fef7e2
parenta58c26bba9ebe97fea99aee125728b1f3886499e
[S390] smp: setup smp_processor_id early

smp_processor_id() is supposed to work before setup_arch() gets called.
Before that smp_processor_id() may return just an arbitrary value that
is contained in the uninitialized boot lowcore.
So provide the arch function which will override the weak function in
init/main.c.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/setup.c
arch/s390/kernel/smp.c