s390: clean up redundant facilities list setup
authorVasily Gorbik <gor@linux.ibm.com>
Wed, 27 Feb 2019 11:49:01 +0000 (12:49 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 1 Mar 2019 07:00:39 +0000 (08:00 +0100)
Facilities list in the lowcore is initially set up by verify_facilities
from als.c and later initializations are redundant, so cleaning them up.

Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/early.c
arch/s390/mm/kasan_init.c

index af5c2b3..2871e98 100644 (file)
@@ -164,8 +164,6 @@ static noinline __init void setup_lowcore_early(void)
 
 static noinline __init void setup_facility_list(void)
 {
-       stfle(S390_lowcore.stfle_fac_list,
-             ARRAY_SIZE(S390_lowcore.stfle_fac_list));
        memcpy(S390_lowcore.alt_stfle_fac_list,
               S390_lowcore.stfle_fac_list,
               sizeof(S390_lowcore.alt_stfle_fac_list));
index bac5c27..01892dc 100644 (file)
@@ -226,8 +226,6 @@ static void __init kasan_enable_dat(void)
 
 static void __init kasan_early_detect_facilities(void)
 {
-       __stfle(S390_lowcore.stfle_fac_list,
-               ARRAY_SIZE(S390_lowcore.stfle_fac_list));
        if (test_facility(8)) {
                has_edat = true;
                __ctl_set_bit(0, 23);