aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms
diff options
context:
space:
mode:
authorManish Ahuja <ahuja@austin.ibm.com>2008-03-21 20:38:59 -0400
committerPaul Mackerras <paulus@samba.org>2008-03-25 17:44:07 -0400
commit654f596da4a83a8d2734fba26c2a1257533e6d75 (patch)
treea937646dfd6e225e6b3f25d6adbde921200f21d9 /arch/powerpc/platforms
parent242f271c056f49b64b94c06b38fe9e8d3bf703bc (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/platforms')
-rw-r--r--arch/powerpc/platforms/pseries/phyp_dump.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/pseries/phyp_dump.c b/arch/powerpc/platforms/pseries/phyp_dump.c
index 034fe1b54dd9..f80f8606c6b8 100644
--- a/arch/powerpc/platforms/pseries/phyp_dump.c
+++ b/arch/powerpc/platforms/pseries/phyp_dump.c
@@ -460,3 +460,21 @@ int __init early_init_dt_scan_phyp_dump(unsigned long node,
460 *((unsigned long *)&sizes[4]); 460 *((unsigned long *)&sizes[4]);
461 return 1; 461 return 1;
462} 462}
463
464/* Look for phyp_dump= cmdline option */
465static int __init early_phyp_dump_enabled(char *p)
466{
467 phyp_dump_info->phyp_dump_at_boot = 1;
468
469 if (!p)
470 return 0;
471
472 if (strncmp(p, "1", 1) == 0)
473 phyp_dump_info->phyp_dump_at_boot = 1;
474 else if (strncmp(p, "0", 1) == 0)
475 phyp_dump_info->phyp_dump_at_boot = 0;
476
477 return 0;
478}
479early_param("phyp_dump", early_phyp_dump_enabled);
480