]> git.karo-electronics.de Git - karo-tx-linux.git/commit
s390/thp: implement pmdp_set_wrprotect()
authorGerald Schaefer <gerald.schaefer@de.ibm.com>
Mon, 21 Jan 2013 15:48:07 +0000 (16:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Feb 2013 00:27:01 +0000 (18:27 -0600)
commitb85ddc2da7cc0827c0b3c3073b88730f5c1f20c9
tree55859f865f0296d2eb130b8a7af40430b039d6b0
parent2698f16a24e6ec48de944f00aef812f19247af60
s390/thp: implement pmdp_set_wrprotect()

commit be3286507dab888d4aad9f91fd6ff5202b24cd5b upstream.

On s390, an architecture-specific implementation of the function
pmdp_set_wrprotect() is missing and the generic version is currently
being used. The generic version does not flush the tlb as it would be
needed on s390 when modifying an active pmd, which can lead to subtle
tlb errors on s390 when using transparent hugepages.

This patch adds an s390-specific implementation of pmdp_set_wrprotect()
including the missing tlb flush.

Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/s390/include/asm/pgtable.h