diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2012-09-27 10:45:06 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2012-10-09 14:16:55 +0200 |
commit | 85e9d0e5ffabfede5facbac5b0d9b90768bc6e90 (patch) | |
tree | b158c8bde347cd8cabd24265dfe65884a08db701 /arch/s390/kernel/early.c | |
parent | 3c7ef08bba65d1fef0b7486b30b5bbcdb42c5d9c (diff) | |
download | op-kernel-dev-85e9d0e5ffabfede5facbac5b0d9b90768bc6e90.zip op-kernel-dev-85e9d0e5ffabfede5facbac5b0d9b90768bc6e90.tar.gz |
s390/mm: use pfmf instruction to initialize storage keys
Make use of the pfmf instruction, if available, to initialize storage keys
of whole 1MB or 2GB frames instead of initializing every single page with
the sske instruction.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel/early.c')
-rw-r--r-- | arch/s390/kernel/early.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/kernel/early.c b/arch/s390/kernel/early.c index 4c91d07..1f0eee9 100644 --- a/arch/s390/kernel/early.c +++ b/arch/s390/kernel/early.c @@ -374,6 +374,8 @@ static __init void detect_machine_facilities(void) S390_lowcore.machine_flags |= MACHINE_FLAG_EDAT1; __ctl_set_bit(0, 23); } + if (test_facility(78)) + S390_lowcore.machine_flags |= MACHINE_FLAG_EDAT2; if (test_facility(3)) S390_lowcore.machine_flags |= MACHINE_FLAG_IDTE; if (test_facility(27)) |