diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2006-10-03 00:12:08 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-10-04 00:52:22 -0400 |
commit | 476792839467c08ddeedd8b44a7423d415b68259 (patch) | |
tree | 43f273e48667c611bb3e28e9c6a359dec0d2c068 /arch/powerpc/kernel/setup-common.c | |
parent | 23b8acb1cf49fea74a9d431de258787384951eac (diff) |
[POWERPC] Fix xmon=off and cleanup xmon initialisation
My patch to make the early xmon logic work with earlier early param
parsing (480f6f35a149802a94ad5c1a2673ed6ec8d2c158) breaks xmon=off.
No one does this obviously as xmon rocks, but it should really work
as documented.
While fixing that it struck me that we could move the xmon param
handling into xmon.c, and also consolidate the
xmon_init()/do_early_xmon logic into xmon_setup(). This means
xmon=early drops into xmon a little earlier on 32-bit, but it
seems to work just fine.
Tested on PSERIES and CLASSIC32.
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/setup-common.c')
-rw-r--r-- | arch/powerpc/kernel/setup-common.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup-common.c index 0af3fc1bdcc9..89cfaf49d3de 100644 --- a/arch/powerpc/kernel/setup-common.c +++ b/arch/powerpc/kernel/setup-common.c | |||
@@ -442,31 +442,6 @@ void __init smp_setup_cpu_maps(void) | |||
442 | } | 442 | } |
443 | #endif /* CONFIG_SMP */ | 443 | #endif /* CONFIG_SMP */ |
444 | 444 | ||
445 | int __initdata do_early_xmon; | ||
446 | #ifdef CONFIG_XMON | ||
447 | extern int xmon_no_auto_backtrace; | ||
448 | |||
449 | static int __init early_xmon(char *p) | ||
450 | { | ||
451 | /* ensure xmon is enabled */ | ||
452 | if (p) { | ||
453 | if (strncmp(p, "on", 2) == 0) | ||
454 | xmon_init(1); | ||
455 | if (strncmp(p, "off", 3) == 0) | ||
456 | xmon_init(0); | ||
457 | if (strncmp(p, "nobt", 4) == 0) | ||
458 | xmon_no_auto_backtrace = 1; | ||
459 | if (strncmp(p, "early", 5) != 0) | ||
460 | return 0; | ||
461 | } | ||
462 | xmon_init(1); | ||
463 | do_early_xmon = 1; | ||
464 | |||
465 | return 0; | ||
466 | } | ||
467 | early_param("xmon", early_xmon); | ||
468 | #endif | ||
469 | |||
470 | static __init int add_pcspkr(void) | 445 | static __init int add_pcspkr(void) |
471 | { | 446 | { |
472 | struct device_node *np; | 447 | struct device_node *np; |