diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2012-07-13 16:12:04 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2012-07-17 10:34:32 +0200 |
commit | 50bb1f761e420776a4d10798babfc76793d4056c (patch) | |
tree | 76e16225b1775b51648eab33c3191d3844e1b945 /arch/s390 | |
parent | 711d2731d0cc90644a67b179bd78432c15a270f0 (diff) |
s390/cpu init: use __get_cpu_var instead of per_cpu
Just saves a couple of instructions.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/kernel/processor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kernel/processor.c b/arch/s390/kernel/processor.c index 07c7bf47d618..0e2887b6d09e 100644 --- a/arch/s390/kernel/processor.c +++ b/arch/s390/kernel/processor.c @@ -25,8 +25,8 @@ static DEFINE_PER_CPU(struct cpuid, cpu_id); */ void __cpuinit cpu_init(void) { - struct cpuid *id = &per_cpu(cpu_id, smp_processor_id()); struct s390_idle_data *idle = &__get_cpu_var(s390_idle); + struct cpuid *id = &__get_cpu_var(cpu_id); get_cpu_id(id); atomic_inc(&init_mm.mm_count); |