summaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel/processor.c
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2012-07-13 16:12:04 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2012-07-17 10:34:32 +0200
commit50bb1f761e420776a4d10798babfc76793d4056c (patch)
tree76e16225b1775b51648eab33c3191d3844e1b945 /arch/s390/kernel/processor.c
parents390/idle: reduce size of s390_idle_data structure (diff)
downloadlinux-50bb1f761e420776a4d10798babfc76793d4056c.tar.xz
linux-50bb1f761e420776a4d10798babfc76793d4056c.zip
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/kernel/processor.c')
-rw-r--r--arch/s390/kernel/processor.c2
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);