diff options
| author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2010-10-25 10:10:51 -0400 |
|---|---|---|
| committer | Martin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com> | 2010-10-25 10:10:21 -0400 |
| commit | 14375bc4eb8dd0fb0e765390650564c35bb31068 (patch) | |
| tree | 27200620658245c582ee9497fc969a082b304cab /arch/s390/mm/fault.c | |
| parent | eca577ef5989d25dedc6b0fae3c4622ceaee8005 (diff) | |
[S390] cleanup facility list handling
Store the facility list once at system startup with stfl/stfle and
reuse the result for all facility tests.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/mm/fault.c')
| -rw-r--r-- | arch/s390/mm/fault.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/s390/mm/fault.c b/arch/s390/mm/fault.c index b4aad0c1f562..fe5701e9efbf 100644 --- a/arch/s390/mm/fault.c +++ b/arch/s390/mm/fault.c | |||
| @@ -56,12 +56,7 @@ static unsigned long store_indication; | |||
| 56 | 56 | ||
| 57 | void fault_init(void) | 57 | void fault_init(void) |
| 58 | { | 58 | { |
| 59 | unsigned long long facility_list[2]; | 59 | if (test_facility(2) && test_facility(75)) |
| 60 | |||
| 61 | if (stfle(facility_list, 2) < 2) | ||
| 62 | return; | ||
| 63 | if ((facility_list[0] & (1ULL << 61)) && | ||
| 64 | (facility_list[1] & (1ULL << 52))) | ||
| 65 | store_indication = 0xc00; | 60 | store_indication = 0xc00; |
| 66 | } | 61 | } |
| 67 | 62 | ||
