diff options
Diffstat (limited to 'arch/powerpc/platforms/cell/ras.c')
-rw-r--r-- | arch/powerpc/platforms/cell/ras.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/powerpc/platforms/cell/ras.c b/arch/powerpc/platforms/cell/ras.c index 665af1c4195b..7b4cefa2199b 100644 --- a/arch/powerpc/platforms/cell/ras.c +++ b/arch/powerpc/platforms/cell/ras.c | |||
@@ -13,15 +13,16 @@ | |||
13 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
14 | #include <linux/smp.h> | 14 | #include <linux/smp.h> |
15 | #include <linux/reboot.h> | 15 | #include <linux/reboot.h> |
16 | #include <linux/kexec.h> | ||
17 | #include <linux/crash_dump.h> | ||
16 | 18 | ||
19 | #include <asm/kexec.h> | ||
17 | #include <asm/reg.h> | 20 | #include <asm/reg.h> |
18 | #include <asm/io.h> | 21 | #include <asm/io.h> |
19 | #include <asm/prom.h> | 22 | #include <asm/prom.h> |
20 | #include <asm/kexec.h> | ||
21 | #include <asm/machdep.h> | 23 | #include <asm/machdep.h> |
22 | #include <asm/rtas.h> | 24 | #include <asm/rtas.h> |
23 | #include <asm/cell-regs.h> | 25 | #include <asm/cell-regs.h> |
24 | #include <asm/kdump.h> | ||
25 | 26 | ||
26 | #include "ras.h" | 27 | #include "ras.h" |
27 | 28 | ||
@@ -112,7 +113,7 @@ static int __init cbe_ptcal_enable_on_node(int nid, int order) | |||
112 | int ret = -ENOMEM; | 113 | int ret = -ENOMEM; |
113 | unsigned long addr; | 114 | unsigned long addr; |
114 | 115 | ||
115 | if (__kdump_flag) | 116 | if (is_kdump_kernel()) |
116 | rtas_call(ptcal_stop_tok, 1, 1, NULL, nid); | 117 | rtas_call(ptcal_stop_tok, 1, 1, NULL, nid); |
117 | 118 | ||
118 | area = kmalloc(sizeof(*area), GFP_KERNEL); | 119 | area = kmalloc(sizeof(*area), GFP_KERNEL); |