diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2008-10-30 12:16:46 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-30 14:06:41 -0400 |
commit | b062f841b569791d3054e975cd85f48562161565 (patch) | |
tree | a1b6d0d88b267392b82d15fb601f9c0dd3d915fb /arch/x86/kernel/nmi.c | |
parent | e946217e4fdaa67681bbabfa8e6b18641921f750 (diff) |
x86: nmi - add sensible names to nmi_watchdog boot param
Impact: introduce nmi_watchdog=lapic and nmi_watchdog=ioapic aliases
Add sensible names as "lapic" and "ioapic" to
nmi_watchdog boot parameter. Sometimes it is not
that easy to recall what exactly nmi_watchdog=1
does mean so we allow the using of symbolic names here.
Old numeric values remain valid.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/nmi.c')
-rw-r--r-- | arch/x86/kernel/nmi.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/arch/x86/kernel/nmi.c b/arch/x86/kernel/nmi.c index 2c97f07f1c2c..c4869e4532a3 100644 --- a/arch/x86/kernel/nmi.c +++ b/arch/x86/kernel/nmi.c | |||
@@ -199,12 +199,17 @@ static int __init setup_nmi_watchdog(char *str) | |||
199 | ++str; | 199 | ++str; |
200 | } | 200 | } |
201 | 201 | ||
202 | get_option(&str, &nmi); | 202 | if (!strncmp(str, "lapic", 5)) |
203 | 203 | nmi_watchdog = NMI_LOCAL_APIC; | |
204 | if (nmi >= NMI_INVALID) | 204 | else if (!strncmp(str, "ioapic", 6)) |
205 | return 0; | 205 | nmi_watchdog = NMI_IO_APIC; |
206 | else { | ||
207 | get_option(&str, &nmi); | ||
208 | if (nmi >= NMI_INVALID) | ||
209 | return 0; | ||
210 | nmi_watchdog = nmi; | ||
211 | } | ||
206 | 212 | ||
207 | nmi_watchdog = nmi; | ||
208 | return 1; | 213 | return 1; |
209 | } | 214 | } |
210 | __setup("nmi_watchdog=", setup_nmi_watchdog); | 215 | __setup("nmi_watchdog=", setup_nmi_watchdog); |