s390/cpu init: use __get_cpu_var instead of per_cpu
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 13 Jul 2012 14:12:04 +0000 (16:12 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 17 Jul 2012 08:34:32 +0000 (10:34 +0200)
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>
arch/s390/kernel/processor.c

index 07c7bf47d61860546663b436439df552deff937e..0e2887b6d09e2e8cb578ff8d9f50df7c2f4de94d 100644 (file)
@@ -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);