diff options
author | Manish Ahuja <ahuja@austin.ibm.com> | 2008-03-21 20:38:59 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-03-25 17:44:07 -0400 |
commit | 654f596da4a83a8d2734fba26c2a1257533e6d75 (patch) | |
tree | a937646dfd6e225e6b3f25d6adbde921200f21d9 /arch/powerpc/kernel | |
parent | 242f271c056f49b64b94c06b38fe9e8d3bf703bc (diff) |
[POWERPC] pseries: phyp dump: Disable phyp-dump through boot-var
This adds a kernel command line option "phyp_dump", which takes a 0/1
value for disabling/ enabling phyp_dump at boot time. Kdump can use
this on cmdline (phyp_dump=0) to disable phyp-dump during boot when
enabling itself. This will ensure only one dumping mechanism is active
at any given time.
Signed-off-by: Manish Ahuja <mahuja@us.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r-- | arch/powerpc/kernel/prom.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c index e6c022ef12ee..9330920265f3 100644 --- a/arch/powerpc/kernel/prom.c +++ b/arch/powerpc/kernel/prom.c | |||
@@ -1060,6 +1060,11 @@ static void __init phyp_dump_reserve_mem(void) | |||
1060 | return; | 1060 | return; |
1061 | } | 1061 | } |
1062 | 1062 | ||
1063 | if (!phyp_dump_info->phyp_dump_at_boot) { | ||
1064 | printk(KERN_INFO "Phyp-dump disabled at boot time\n"); | ||
1065 | return; | ||
1066 | } | ||
1067 | |||
1063 | if (phyp_dump_info->phyp_dump_is_active) { | 1068 | if (phyp_dump_info->phyp_dump_is_active) { |
1064 | /* Reserve *everything* above RMR.Area freed by userland tools*/ | 1069 | /* Reserve *everything* above RMR.Area freed by userland tools*/ |
1065 | base = PHYP_DUMP_RMR_END; | 1070 | base = PHYP_DUMP_RMR_END; |