summaryrefslogtreecommitdiffstats
path: root/arch/s390/include/asm/mmu_context.h
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2017-08-17 18:17:49 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2017-09-06 09:24:43 +0200
commitf28a4b4ddf8e7181c6c0bc45603d65c4ab6b14f9 (patch)
treeac57ff2985e8915e5cc54666bf6b400f3d5db587 /arch/s390/include/asm/mmu_context.h
parent60f07c8ec5fae06c23e9fd7bab67dabce92b3414 (diff)
downloadblackbird-obmc-linux-f28a4b4ddf8e7181c6c0bc45603d65c4ab6b14f9.tar.gz
blackbird-obmc-linux-f28a4b4ddf8e7181c6c0bc45603d65c4ab6b14f9.zip
s390/mm: use a single lock for the fields in mm_context_t
The three locks 'lock', 'pgtable_lock' and 'gmap_lock' in the mm_context_t can be reduced to a single lock. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/mmu_context.h')
-rw-r--r--arch/s390/include/asm/mmu_context.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/s390/include/asm/mmu_context.h b/arch/s390/include/asm/mmu_context.h
index 484efe8f4234..3c9abedc323c 100644
--- a/arch/s390/include/asm/mmu_context.h
+++ b/arch/s390/include/asm/mmu_context.h
@@ -18,9 +18,7 @@ static inline int init_new_context(struct task_struct *tsk,
struct mm_struct *mm)
{
spin_lock_init(&mm->context.lock);
- spin_lock_init(&mm->context.pgtable_lock);
INIT_LIST_HEAD(&mm->context.pgtable_list);
- spin_lock_init(&mm->context.gmap_lock);
INIT_LIST_HEAD(&mm->context.gmap_list);
cpumask_clear(&mm->context.cpu_attach_mask);
atomic_set(&mm->context.flush_count, 0);
OpenPOWER on IntegriCloud