]> git.baikalelectronics.ru Git - kernel.git/commit
s390/pageattr: avoid unnecessary page table splitting
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 24 Apr 2017 13:27:35 +0000 (15:27 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 26 Apr 2017 11:41:21 +0000 (13:41 +0200)
commit8076875ef606237649abe132ad555436bd4529b7
treeba7b4a0e6b322678c76891a3c96e2d6896f5f75a
parenteb3b32c707f76a93b8ad22454e605c1de1fc4f1f
s390/pageattr: avoid unnecessary page table splitting

The kernel page table splitting code will split page tables even for
features the CPU does not support. E.g. a CPU may not support the NX
feature.
In order to avoid this, remove those bits from the flags parameter
that correlate with unsupported CPU features within __set_memory(). In
addition add an early exit if the flags parameter does not have any
bits set afterwards.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/mm/pageattr.c