diff options
author | Michael Holzheu <holzheu@linux.vnet.ibm.com> | 2013-11-13 04:38:27 -0500 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2013-11-15 08:08:41 -0500 |
commit | 7b50da53f6ad2048241bef232bfc22a132a40283 (patch) | |
tree | d8cdf310a750de86e63c4831de2fa22affa350b4 /drivers/s390 | |
parent | acf6a004e6a35dad17032e3b7c5a046c29957e65 (diff) |
s390/sclp: Consolidate early sclp init calls to sclp_early_detect()
The new function calls the old ones. The sclp_event_mask_early() is removed
and replaced by one invocation of sclp_set_event_mask(0, 0).
Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/char/sclp_early.c | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/drivers/s390/char/sclp_early.c b/drivers/s390/char/sclp_early.c index cbec45fdcc59..f7aa080e9b28 100644 --- a/drivers/s390/char/sclp_early.c +++ b/drivers/s390/char/sclp_early.c | |||
@@ -93,20 +93,7 @@ static void __init sclp_read_info_early(void) | |||
93 | } | 93 | } |
94 | } | 94 | } |
95 | 95 | ||
96 | static void __init sclp_event_mask_early(void) | 96 | static void __init sclp_facilities_detect(void) |
97 | { | ||
98 | struct init_sccb *sccb = &early_event_mask_sccb; | ||
99 | int rc; | ||
100 | |||
101 | do { | ||
102 | memset(sccb, 0, sizeof(*sccb)); | ||
103 | sccb->header.length = sizeof(*sccb); | ||
104 | sccb->mask_length = sizeof(sccb_mask_t); | ||
105 | rc = sclp_cmd_sync_early(SCLP_CMDW_WRITE_EVENT_MASK, sccb); | ||
106 | } while (rc == -EBUSY); | ||
107 | } | ||
108 | |||
109 | void __init sclp_facilities_detect(void) | ||
110 | { | 97 | { |
111 | struct read_info_sccb *sccb; | 98 | struct read_info_sccb *sccb; |
112 | 99 | ||
@@ -122,8 +109,6 @@ void __init sclp_facilities_detect(void) | |||
122 | sclp_rnmax = sccb->rnmax ? sccb->rnmax : sccb->rnmax2; | 109 | sclp_rnmax = sccb->rnmax ? sccb->rnmax : sccb->rnmax2; |
123 | sclp_rzm = sccb->rnsize ? sccb->rnsize : sccb->rnsize2; | 110 | sclp_rzm = sccb->rnsize ? sccb->rnsize : sccb->rnsize2; |
124 | sclp_rzm <<= 20; | 111 | sclp_rzm <<= 20; |
125 | |||
126 | sclp_event_mask_early(); | ||
127 | } | 112 | } |
128 | 113 | ||
129 | bool __init sclp_has_linemode(void) | 114 | bool __init sclp_has_linemode(void) |
@@ -246,7 +231,7 @@ unsigned long sclp_get_hsa_size(void) | |||
246 | return sclp_hsa_size; | 231 | return sclp_hsa_size; |
247 | } | 232 | } |
248 | 233 | ||
249 | void __init sclp_hsa_size_detect(void) | 234 | static void __init sclp_hsa_size_detect(void) |
250 | { | 235 | { |
251 | long size; | 236 | long size; |
252 | 237 | ||
@@ -268,6 +253,12 @@ void __init sclp_hsa_size_detect(void) | |||
268 | if (size < 0) | 253 | if (size < 0) |
269 | return; | 254 | return; |
270 | out: | 255 | out: |
271 | sclp_set_event_mask(0, 0); | ||
272 | sclp_hsa_size = size; | 256 | sclp_hsa_size = size; |
273 | } | 257 | } |
258 | |||
259 | void __init sclp_early_detect(void) | ||
260 | { | ||
261 | sclp_facilities_detect(); | ||
262 | sclp_hsa_size_detect(); | ||
263 | sclp_set_event_mask(0, 0); | ||
264 | } | ||