diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2017-08-17 18:17:49 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2017-09-06 09:24:43 +0200 |
commit | f28a4b4ddf8e7181c6c0bc45603d65c4ab6b14f9 (patch) | |
tree | ac57ff2985e8915e5cc54666bf6b400f3d5db587 /arch/s390/include/asm/mmu_context.h | |
parent | 60f07c8ec5fae06c23e9fd7bab67dabce92b3414 (diff) | |
download | op-kernel-dev-f28a4b4ddf8e7181c6c0bc45603d65c4ab6b14f9.zip op-kernel-dev-f28a4b4ddf8e7181c6c0bc45603d65c4ab6b14f9.tar.gz |
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.h | 2 |
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 484efe8..3c9abed 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); |