diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2010-01-13 14:44:34 -0500 |
---|---|---|
committer | Martin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com> | 2010-01-13 14:44:45 -0500 |
commit | 02beaccc901b7a28ac1de79f3ed122f5fda220b1 (patch) | |
tree | 77c36cd14b9ce1324ff6127a4bdb19e312fef7e2 /arch/s390/kernel/setup.c | |
parent | a58c26bba9ebe97fea99aee125728b1f3886499e (diff) |
[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>
Diffstat (limited to 'arch/s390/kernel/setup.c')
-rw-r--r-- | arch/s390/kernel/setup.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c index 2148ad3d490d..2d6a265b0145 100644 --- a/arch/s390/kernel/setup.c +++ b/arch/s390/kernel/setup.c | |||
@@ -849,7 +849,6 @@ setup_arch(char **cmdline_p) | |||
849 | setup_lowcore(); | 849 | setup_lowcore(); |
850 | 850 | ||
851 | cpu_init(); | 851 | cpu_init(); |
852 | __cpu_logical_map[0] = stap(); | ||
853 | s390_init_cpu_topology(); | 852 | s390_init_cpu_topology(); |
854 | 853 | ||
855 | /* | 854 | /* |