diff options
author | Sebastian Ott <sebott@linux.vnet.ibm.com> | 2013-04-30 11:18:46 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2013-05-02 09:50:21 -0400 |
commit | fe72ffba3eaf4f07933dc2047be934290113d357 (patch) | |
tree | 173c7fd56c95cd0d4fd0fca0b7883cf585eb45ee /arch/s390 | |
parent | d1eb16e64f20bbb88b0949fb5203ac43b661dffe (diff) |
s390/zfcpdump: exploit new cio_ignore keywords
Use the 'ipldev' and 'condev' cio_ignore keywords to setup the
command line for zfcpdump.
Reviewed-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/kernel/setup.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c index 0f419c5765c8..a2574f192bb0 100644 --- a/arch/s390/kernel/setup.c +++ b/arch/s390/kernel/setup.c | |||
@@ -226,25 +226,17 @@ static void __init conmode_default(void) | |||
226 | } | 226 | } |
227 | 227 | ||
228 | #ifdef CONFIG_ZFCPDUMP | 228 | #ifdef CONFIG_ZFCPDUMP |
229 | static void __init setup_zfcpdump(unsigned int console_devno) | 229 | static void __init setup_zfcpdump(void) |
230 | { | 230 | { |
231 | static char str[41]; | ||
232 | |||
233 | if (ipl_info.type != IPL_TYPE_FCP_DUMP) | 231 | if (ipl_info.type != IPL_TYPE_FCP_DUMP) |
234 | return; | 232 | return; |
235 | if (OLDMEM_BASE) | 233 | if (OLDMEM_BASE) |
236 | return; | 234 | return; |
237 | if (console_devno != -1) | 235 | strcat(boot_command_line, " cio_ignore=all,!ipldev,!condev"); |
238 | sprintf(str, " cio_ignore=all,!0.0.%04x,!0.0.%04x", | ||
239 | ipl_info.data.fcp.dev_id.devno, console_devno); | ||
240 | else | ||
241 | sprintf(str, " cio_ignore=all,!0.0.%04x", | ||
242 | ipl_info.data.fcp.dev_id.devno); | ||
243 | strcat(boot_command_line, str); | ||
244 | console_loglevel = 2; | 236 | console_loglevel = 2; |
245 | } | 237 | } |
246 | #else | 238 | #else |
247 | static inline void setup_zfcpdump(unsigned int console_devno) {} | 239 | static inline void setup_zfcpdump(void) {} |
248 | #endif /* CONFIG_ZFCPDUMP */ | 240 | #endif /* CONFIG_ZFCPDUMP */ |
249 | 241 | ||
250 | /* | 242 | /* |
@@ -1097,5 +1089,5 @@ void __init setup_arch(char **cmdline_p) | |||
1097 | set_preferred_console(); | 1089 | set_preferred_console(); |
1098 | 1090 | ||
1099 | /* Setup zfcpdump support */ | 1091 | /* Setup zfcpdump support */ |
1100 | setup_zfcpdump(console_devno); | 1092 | setup_zfcpdump(); |
1101 | } | 1093 | } |