aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel/setup.c
diff options
context:
space:
mode:
authorMichael Holzheu <holzheu@de.ibm.com>2007-02-21 04:55:18 -0500
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2007-02-21 04:55:18 -0500
commit72960a02c270950253126ee8b339afd400f55273 (patch)
tree3dec1f231bac88c2457af8a33b146b7df25df603 /arch/s390/kernel/setup.c
parent6c732de2d3673e28c6a976c98ee6ba4d197a919a (diff)
[S390] New get_cpu_id() inline assembly
Replace two stidp inline assemblies with one global implementation. Signed-off-by: Michael Holzheu <holzheu@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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c
index 50c5210fbc64..49567d8cd9a1 100644
--- a/arch/s390/kernel/setup.c
+++ b/arch/s390/kernel/setup.c
@@ -106,7 +106,7 @@ void __devinit cpu_init (void)
106 /* 106 /*
107 * Store processor id in lowcore (used e.g. in timer_interrupt) 107 * Store processor id in lowcore (used e.g. in timer_interrupt)
108 */ 108 */
109 asm volatile("stidp %0": "=m" (S390_lowcore.cpu_data.cpu_id)); 109 get_cpu_id(&S390_lowcore.cpu_data.cpu_id);
110 S390_lowcore.cpu_data.cpu_addr = addr; 110 S390_lowcore.cpu_data.cpu_addr = addr;
111 111
112 /* 112 /*