summaryrefslogtreecommitdiffstats
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
parent711d2731d0cc90644a67b179bd78432c15a270f0 (diff)
downloadop-kernel-dev-50bb1f761e420776a4d10798babfc76793d4056c.zip
op-kernel-dev-50bb1f761e420776a4d10798babfc76793d4056c.tar.gz
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>
-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 07c7bf4..0e2887b 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);
OpenPOWER on IntegriCloud