diff options
author | Philipp Hachtmann <phacht@linux.vnet.ibm.com> | 2014-04-07 12:25:23 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2014-05-20 02:58:42 -0400 |
commit | 6c8cd5bbda7e6be166cf2e2dd4be5890193e17ac (patch) | |
tree | 0245d1a206b04c2cd2b5b4914dfb696205673861 /arch/s390/kernel/setup.c | |
parent | 5b3f683e694a835f5dfdab06102be1a50604c3b7 (diff) |
s390/spinlock: optimize spinlock code sequence
Use lowcore constant to improve the code generated for spinlocks.
[ Martin Schwidefsky: patch breakdown and code beautification ]
Signed-off-by: Philipp Hachtmann <phacht@linux.vnet.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.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c index 1f5536c2fd02..7c5b05fa2194 100644 --- a/arch/s390/kernel/setup.c +++ b/arch/s390/kernel/setup.c | |||
@@ -373,6 +373,10 @@ static void __init setup_lowcore(void) | |||
373 | mem_assign_absolute(S390_lowcore.restart_source, lc->restart_source); | 373 | mem_assign_absolute(S390_lowcore.restart_source, lc->restart_source); |
374 | mem_assign_absolute(S390_lowcore.restart_psw, lc->restart_psw); | 374 | mem_assign_absolute(S390_lowcore.restart_psw, lc->restart_psw); |
375 | 375 | ||
376 | #ifdef CONFIG_SMP | ||
377 | lc->spinlock_lockval = arch_spin_lockval(0); | ||
378 | #endif | ||
379 | |||
376 | set_prefix((u32)(unsigned long) lc); | 380 | set_prefix((u32)(unsigned long) lc); |
377 | lowcore_ptr[0] = lc; | 381 | lowcore_ptr[0] = lc; |
378 | } | 382 | } |