Michael Ellerman | cc53291 | 2005-12-04 18:39:43 +1100 | [diff] [blame] | 1 | /* |
| 2 | * Architecture specific (PPC64) functions for kexec based crash dumps. |
| 3 | * |
| 4 | * Copyright (C) 2005, IBM Corp. |
| 5 | * |
| 6 | * Created by: Haren Myneni |
| 7 | * |
| 8 | * This source code is licensed under the GNU General Public License, |
| 9 | * Version 2. See the file COPYING for more details. |
| 10 | * |
| 11 | */ |
| 12 | |
| 13 | #undef DEBUG |
| 14 | |
| 15 | #include <linux/kernel.h> |
| 16 | #include <linux/smp.h> |
| 17 | #include <linux/reboot.h> |
| 18 | #include <linux/kexec.h> |
| 19 | #include <linux/bootmem.h> |
Paul Gortmaker | 66b15db | 2011-05-27 10:46:24 -0400 | [diff] [blame] | 20 | #include <linux/export.h> |
Michael Ellerman | cc53291 | 2005-12-04 18:39:43 +1100 | [diff] [blame] | 21 | #include <linux/crash_dump.h> |
Michael Ellerman | cc53291 | 2005-12-04 18:39:43 +1100 | [diff] [blame] | 22 | #include <linux/delay.h> |
| 23 | #include <linux/elf.h> |
| 24 | #include <linux/elfcore.h> |
| 25 | #include <linux/init.h> |
Michael Ellerman | d6c1a90 | 2006-04-04 13:43:01 +0200 | [diff] [blame] | 26 | #include <linux/irq.h> |
Michael Ellerman | cc53291 | 2005-12-04 18:39:43 +1100 | [diff] [blame] | 27 | #include <linux/types.h> |
Yinghai Lu | 95f72d1 | 2010-07-12 14:36:09 +1000 | [diff] [blame] | 28 | #include <linux/memblock.h> |
Michael Ellerman | cc53291 | 2005-12-04 18:39:43 +1100 | [diff] [blame] | 29 | |
| 30 | #include <asm/processor.h> |
| 31 | #include <asm/machdep.h> |
David Wilder | c0ce7d0 | 2006-06-23 15:29:34 -0700 | [diff] [blame] | 32 | #include <asm/kexec.h> |
Michael Ellerman | cc53291 | 2005-12-04 18:39:43 +1100 | [diff] [blame] | 33 | #include <asm/kdump.h> |
David S. Miller | d9b2b2a | 2008-02-13 16:56:49 -0800 | [diff] [blame] | 34 | #include <asm/prom.h> |
Michael Ellerman | cc53291 | 2005-12-04 18:39:43 +1100 | [diff] [blame] | 35 | #include <asm/firmware.h> |
Haren Myneni | f6cc82f | 2006-01-10 19:25:25 -0800 | [diff] [blame] | 36 | #include <asm/smp.h> |
Michael Neuling | 496b010 | 2008-01-18 15:50:30 +1100 | [diff] [blame] | 37 | #include <asm/system.h> |
| 38 | #include <asm/setjmp.h> |
Michael Ellerman | cc53291 | 2005-12-04 18:39:43 +1100 | [diff] [blame] | 39 | |
| 40 | #ifdef DEBUG |
| 41 | #include <asm/udbg.h> |
| 42 | #define DBG(fmt...) udbg_printf(fmt) |
| 43 | #else |
| 44 | #define DBG(fmt...) |
| 45 | #endif |
| 46 | |
| 47 | /* This keeps a track of which one is crashing cpu. */ |
| 48 | int crashing_cpu = -1; |
David Wilder | c0ce7d0 | 2006-06-23 15:29:34 -0700 | [diff] [blame] | 49 | static cpumask_t cpus_in_crash = CPU_MASK_NONE; |
Michael Ellerman | cc53291 | 2005-12-04 18:39:43 +1100 | [diff] [blame] | 50 | |
Anton Blanchard | 158d5b5e | 2011-01-21 13:43:59 +1100 | [diff] [blame] | 51 | #define CRASH_HANDLER_MAX 3 |
Michael Neuling | 496b010 | 2008-01-18 15:50:30 +1100 | [diff] [blame] | 52 | /* NULL terminated list of shutdown handles */ |
| 53 | static crash_shutdown_t crash_shutdown_handles[CRASH_HANDLER_MAX+1]; |
| 54 | static DEFINE_SPINLOCK(crash_handlers_lock); |
| 55 | |
Michael Ellerman | cc53291 | 2005-12-04 18:39:43 +1100 | [diff] [blame] | 56 | #ifdef CONFIG_SMP |
Michael Ellerman | cc53291 | 2005-12-04 18:39:43 +1100 | [diff] [blame] | 57 | |
| 58 | void crash_ipi_callback(struct pt_regs *regs) |
| 59 | { |
| 60 | int cpu = smp_processor_id(); |
| 61 | |
Michael Ellerman | cc53291 | 2005-12-04 18:39:43 +1100 | [diff] [blame] | 62 | if (!cpu_online(cpu)) |
| 63 | return; |
| 64 | |
Paul Mackerras | d04c56f | 2006-10-04 16:47:49 +1000 | [diff] [blame] | 65 | hard_irq_disable(); |
KOSAKI Motohiro | 104699c | 2011-04-28 05:07:23 +0000 | [diff] [blame] | 66 | if (!cpumask_test_cpu(cpu, &cpus_in_crash)) |
Magnus Damm | 85916f8 | 2006-12-06 20:40:41 -0800 | [diff] [blame] | 67 | crash_save_cpu(regs, cpu); |
KOSAKI Motohiro | 104699c | 2011-04-28 05:07:23 +0000 | [diff] [blame] | 68 | cpumask_set_cpu(cpu, &cpus_in_crash); |
David Wilder | c0ce7d0 | 2006-06-23 15:29:34 -0700 | [diff] [blame] | 69 | |
| 70 | /* |
David Wilder | c0ce7d0 | 2006-06-23 15:29:34 -0700 | [diff] [blame] | 71 | * Starting the kdump boot. |
| 72 | * This barrier is needed to make sure that all CPUs are stopped. |
David Wilder | c0ce7d0 | 2006-06-23 15:29:34 -0700 | [diff] [blame] | 73 | */ |
KOSAKI Motohiro | 104699c | 2011-04-28 05:07:23 +0000 | [diff] [blame] | 74 | while (!cpumask_test_cpu(crashing_cpu, &cpus_in_crash)) |
David Wilder | c0ce7d0 | 2006-06-23 15:29:34 -0700 | [diff] [blame] | 75 | cpu_relax(); |
| 76 | |
Michael Ellerman | cc53291 | 2005-12-04 18:39:43 +1100 | [diff] [blame] | 77 | if (ppc_md.kexec_cpu_down) |
| 78 | ppc_md.kexec_cpu_down(1, 1); |
Michael Ellerman | b6f35b4 | 2006-07-05 14:39:43 +1000 | [diff] [blame] | 79 | |
| 80 | #ifdef CONFIG_PPC64 |
Michael Ellerman | cc53291 | 2005-12-04 18:39:43 +1100 | [diff] [blame] | 81 | kexec_smp_wait(); |
Michael Ellerman | b6f35b4 | 2006-07-05 14:39:43 +1000 | [diff] [blame] | 82 | #else |
| 83 | for (;;); /* FIXME */ |
| 84 | #endif |
| 85 | |
Michael Ellerman | cc53291 | 2005-12-04 18:39:43 +1100 | [diff] [blame] | 86 | /* NOTREACHED */ |
| 87 | } |
| 88 | |
David Wilder | c0ce7d0 | 2006-06-23 15:29:34 -0700 | [diff] [blame] | 89 | static void crash_kexec_prepare_cpus(int cpu) |
Michael Ellerman | cc53291 | 2005-12-04 18:39:43 +1100 | [diff] [blame] | 90 | { |
| 91 | unsigned int msecs; |
| 92 | |
David Wilder | c0ce7d0 | 2006-06-23 15:29:34 -0700 | [diff] [blame] | 93 | unsigned int ncpus = num_online_cpus() - 1;/* Excluding the panic cpu */ |
Michael Ellerman | cc53291 | 2005-12-04 18:39:43 +1100 | [diff] [blame] | 94 | |
Anton Blanchard | 9b00ac0 | 2011-11-30 00:23:10 +0000 | [diff] [blame^] | 95 | printk(KERN_EMERG "Sending IPI to other CPUs\n"); |
| 96 | |
Michael Ellerman | cc53291 | 2005-12-04 18:39:43 +1100 | [diff] [blame] | 97 | crash_send_ipi(crash_ipi_callback); |
| 98 | smp_wmb(); |
| 99 | |
| 100 | /* |
Anton Blanchard | 158d5b5e | 2011-01-21 13:43:59 +1100 | [diff] [blame] | 101 | * FIXME: Until we will have the way to stop other CPUs reliably, |
Michael Ellerman | cc53291 | 2005-12-04 18:39:43 +1100 | [diff] [blame] | 102 | * the crash CPU will send an IPI and wait for other CPUs to |
David Wilder | c0ce7d0 | 2006-06-23 15:29:34 -0700 | [diff] [blame] | 103 | * respond. |
Haren Myneni | 01aaed9 | 2006-02-07 15:47:03 -0800 | [diff] [blame] | 104 | * Delay of at least 10 seconds. |
Michael Ellerman | cc53291 | 2005-12-04 18:39:43 +1100 | [diff] [blame] | 105 | */ |
Haren Myneni | 01aaed9 | 2006-02-07 15:47:03 -0800 | [diff] [blame] | 106 | msecs = 10000; |
KOSAKI Motohiro | 104699c | 2011-04-28 05:07:23 +0000 | [diff] [blame] | 107 | while ((cpumask_weight(&cpus_in_crash) < ncpus) && (--msecs > 0)) { |
David Wilder | c0ce7d0 | 2006-06-23 15:29:34 -0700 | [diff] [blame] | 108 | cpu_relax(); |
Michael Ellerman | cc53291 | 2005-12-04 18:39:43 +1100 | [diff] [blame] | 109 | mdelay(1); |
| 110 | } |
| 111 | |
| 112 | /* Would it be better to replace the trap vector here? */ |
| 113 | |
KOSAKI Motohiro | 104699c | 2011-04-28 05:07:23 +0000 | [diff] [blame] | 114 | if (cpumask_weight(&cpus_in_crash) < ncpus) { |
Anton Blanchard | 9b00ac0 | 2011-11-30 00:23:10 +0000 | [diff] [blame^] | 115 | printk(KERN_EMERG "ERROR: %d CPU(s) not responding\n", |
KOSAKI Motohiro | 104699c | 2011-04-28 05:07:23 +0000 | [diff] [blame] | 116 | ncpus - cpumask_weight(&cpus_in_crash)); |
David Wilder | c0ce7d0 | 2006-06-23 15:29:34 -0700 | [diff] [blame] | 117 | } |
Anton Blanchard | 9b00ac0 | 2011-11-30 00:23:10 +0000 | [diff] [blame^] | 118 | |
| 119 | printk(KERN_EMERG "IPI complete\n"); |
Michael Ellerman | cc53291 | 2005-12-04 18:39:43 +1100 | [diff] [blame] | 120 | } |
David Wilder | c0ce7d0 | 2006-06-23 15:29:34 -0700 | [diff] [blame] | 121 | |
| 122 | /* |
Anton Blanchard | 9b00ac0 | 2011-11-30 00:23:10 +0000 | [diff] [blame^] | 123 | * This function will be called by secondary cpus. |
David Wilder | c0ce7d0 | 2006-06-23 15:29:34 -0700 | [diff] [blame] | 124 | */ |
| 125 | void crash_kexec_secondary(struct pt_regs *regs) |
| 126 | { |
David Wilder | c0ce7d0 | 2006-06-23 15:29:34 -0700 | [diff] [blame] | 127 | unsigned long flags; |
Anton Blanchard | 9b00ac0 | 2011-11-30 00:23:10 +0000 | [diff] [blame^] | 128 | int msecs = 500; |
David Wilder | c0ce7d0 | 2006-06-23 15:29:34 -0700 | [diff] [blame] | 129 | |
| 130 | local_irq_save(flags); |
Anton Blanchard | 9b00ac0 | 2011-11-30 00:23:10 +0000 | [diff] [blame^] | 131 | |
| 132 | /* Wait 500ms for the primary crash CPU to signal its progress */ |
David Wilder | c0ce7d0 | 2006-06-23 15:29:34 -0700 | [diff] [blame] | 133 | while (crashing_cpu < 0) { |
| 134 | if (--msecs < 0) { |
Anton Blanchard | 9b00ac0 | 2011-11-30 00:23:10 +0000 | [diff] [blame^] | 135 | /* No response, kdump image may not have been loaded */ |
David Wilder | c0ce7d0 | 2006-06-23 15:29:34 -0700 | [diff] [blame] | 136 | local_irq_restore(flags); |
| 137 | return; |
| 138 | } |
Anton Blanchard | 9b00ac0 | 2011-11-30 00:23:10 +0000 | [diff] [blame^] | 139 | |
David Wilder | c0ce7d0 | 2006-06-23 15:29:34 -0700 | [diff] [blame] | 140 | mdelay(1); |
| 141 | cpu_relax(); |
| 142 | } |
Anton Blanchard | 9b00ac0 | 2011-11-30 00:23:10 +0000 | [diff] [blame^] | 143 | |
David Wilder | c0ce7d0 | 2006-06-23 15:29:34 -0700 | [diff] [blame] | 144 | crash_ipi_callback(regs); |
| 145 | } |
| 146 | |
Paul Gortmaker | 7c7a81b | 2011-04-13 06:30:08 +0000 | [diff] [blame] | 147 | #else /* ! CONFIG_SMP */ |
Paul Gortmaker | 7c7a81b | 2011-04-13 06:30:08 +0000 | [diff] [blame] | 148 | |
David Wilder | c0ce7d0 | 2006-06-23 15:29:34 -0700 | [diff] [blame] | 149 | static void crash_kexec_prepare_cpus(int cpu) |
Michael Ellerman | cc53291 | 2005-12-04 18:39:43 +1100 | [diff] [blame] | 150 | { |
| 151 | /* |
| 152 | * move the secondarys to us so that we can copy |
| 153 | * the new kernel 0-0x100 safely |
| 154 | * |
| 155 | * do this if kexec in setup.c ? |
| 156 | */ |
Michael Ellerman | b6f35b4 | 2006-07-05 14:39:43 +1000 | [diff] [blame] | 157 | #ifdef CONFIG_PPC64 |
Michael Ellerman | cc53291 | 2005-12-04 18:39:43 +1100 | [diff] [blame] | 158 | smp_release_cpus(); |
Michael Ellerman | b6f35b4 | 2006-07-05 14:39:43 +1000 | [diff] [blame] | 159 | #else |
| 160 | /* FIXME */ |
| 161 | #endif |
Michael Ellerman | cc53291 | 2005-12-04 18:39:43 +1100 | [diff] [blame] | 162 | } |
| 163 | |
David Wilder | c0ce7d0 | 2006-06-23 15:29:34 -0700 | [diff] [blame] | 164 | void crash_kexec_secondary(struct pt_regs *regs) |
| 165 | { |
David Wilder | c0ce7d0 | 2006-06-23 15:29:34 -0700 | [diff] [blame] | 166 | } |
Paul Gortmaker | 7c7a81b | 2011-04-13 06:30:08 +0000 | [diff] [blame] | 167 | #endif /* CONFIG_SMP */ |
Michael Ellerman | cc53291 | 2005-12-04 18:39:43 +1100 | [diff] [blame] | 168 | |
Ben Hutchings | 7707e41 | 2011-04-24 15:04:31 +0000 | [diff] [blame] | 169 | /* wait for all the CPUs to hit real mode but timeout if they don't come in */ |
| 170 | #if defined(CONFIG_SMP) && defined(CONFIG_PPC_STD_MMU_64) |
| 171 | static void crash_kexec_wait_realmode(int cpu) |
| 172 | { |
| 173 | unsigned int msecs; |
| 174 | int i; |
| 175 | |
| 176 | msecs = 10000; |
Milton Miller | bd9e5ee | 2011-05-10 19:28:41 +0000 | [diff] [blame] | 177 | for (i=0; i < nr_cpu_ids && msecs > 0; i++) { |
Ben Hutchings | 7707e41 | 2011-04-24 15:04:31 +0000 | [diff] [blame] | 178 | if (i == cpu) |
| 179 | continue; |
| 180 | |
| 181 | while (paca[i].kexec_state < KEXEC_STATE_REAL_MODE) { |
| 182 | barrier(); |
Michael Neuling | 63f21a5 | 2011-07-04 20:40:10 +0000 | [diff] [blame] | 183 | if (!cpu_possible(i) || !cpu_online(i) || (msecs <= 0)) |
Ben Hutchings | 7707e41 | 2011-04-24 15:04:31 +0000 | [diff] [blame] | 184 | break; |
Ben Hutchings | 7707e41 | 2011-04-24 15:04:31 +0000 | [diff] [blame] | 185 | msecs--; |
| 186 | mdelay(1); |
| 187 | } |
| 188 | } |
| 189 | mb(); |
| 190 | } |
| 191 | #else |
| 192 | static inline void crash_kexec_wait_realmode(int cpu) {} |
| 193 | #endif /* CONFIG_SMP && CONFIG_PPC_STD_MMU_64 */ |
| 194 | |
Michael Neuling | 496b010 | 2008-01-18 15:50:30 +1100 | [diff] [blame] | 195 | /* |
| 196 | * Register a function to be called on shutdown. Only use this if you |
| 197 | * can't reset your device in the second kernel. |
| 198 | */ |
| 199 | int crash_shutdown_register(crash_shutdown_t handler) |
| 200 | { |
| 201 | unsigned int i, rc; |
| 202 | |
| 203 | spin_lock(&crash_handlers_lock); |
| 204 | for (i = 0 ; i < CRASH_HANDLER_MAX; i++) |
| 205 | if (!crash_shutdown_handles[i]) { |
| 206 | /* Insert handle at first empty entry */ |
| 207 | crash_shutdown_handles[i] = handler; |
| 208 | rc = 0; |
| 209 | break; |
| 210 | } |
| 211 | |
| 212 | if (i == CRASH_HANDLER_MAX) { |
| 213 | printk(KERN_ERR "Crash shutdown handles full, " |
| 214 | "not registered.\n"); |
| 215 | rc = 1; |
| 216 | } |
| 217 | |
| 218 | spin_unlock(&crash_handlers_lock); |
| 219 | return rc; |
| 220 | } |
| 221 | EXPORT_SYMBOL(crash_shutdown_register); |
| 222 | |
| 223 | int crash_shutdown_unregister(crash_shutdown_t handler) |
| 224 | { |
| 225 | unsigned int i, rc; |
| 226 | |
| 227 | spin_lock(&crash_handlers_lock); |
| 228 | for (i = 0 ; i < CRASH_HANDLER_MAX; i++) |
| 229 | if (crash_shutdown_handles[i] == handler) |
| 230 | break; |
| 231 | |
| 232 | if (i == CRASH_HANDLER_MAX) { |
| 233 | printk(KERN_ERR "Crash shutdown handle not found\n"); |
| 234 | rc = 1; |
| 235 | } else { |
| 236 | /* Shift handles down */ |
| 237 | for (; crash_shutdown_handles[i]; i++) |
| 238 | crash_shutdown_handles[i] = |
| 239 | crash_shutdown_handles[i+1]; |
| 240 | rc = 0; |
| 241 | } |
| 242 | |
| 243 | spin_unlock(&crash_handlers_lock); |
| 244 | return rc; |
| 245 | } |
| 246 | EXPORT_SYMBOL(crash_shutdown_unregister); |
| 247 | |
| 248 | static unsigned long crash_shutdown_buf[JMP_BUF_LEN]; |
Anton Blanchard | 0644079 | 2010-05-10 16:25:51 +0000 | [diff] [blame] | 249 | static int crash_shutdown_cpu = -1; |
Michael Neuling | 496b010 | 2008-01-18 15:50:30 +1100 | [diff] [blame] | 250 | |
| 251 | static int handle_fault(struct pt_regs *regs) |
| 252 | { |
Anton Blanchard | 0644079 | 2010-05-10 16:25:51 +0000 | [diff] [blame] | 253 | if (crash_shutdown_cpu == smp_processor_id()) |
| 254 | longjmp(crash_shutdown_buf, 1); |
Michael Neuling | 496b010 | 2008-01-18 15:50:30 +1100 | [diff] [blame] | 255 | return 0; |
| 256 | } |
| 257 | |
Michael Ellerman | cc53291 | 2005-12-04 18:39:43 +1100 | [diff] [blame] | 258 | void default_machine_crash_shutdown(struct pt_regs *regs) |
| 259 | { |
Michael Neuling | 496b010 | 2008-01-18 15:50:30 +1100 | [diff] [blame] | 260 | unsigned int i; |
| 261 | int (*old_handler)(struct pt_regs *regs); |
| 262 | |
Michael Ellerman | d6c1a90 | 2006-04-04 13:43:01 +0200 | [diff] [blame] | 263 | |
Michael Ellerman | cc53291 | 2005-12-04 18:39:43 +1100 | [diff] [blame] | 264 | /* |
| 265 | * This function is only called after the system |
Lee Revell | f18190b | 2006-06-26 18:30:00 +0200 | [diff] [blame] | 266 | * has panicked or is otherwise in a critical state. |
Michael Ellerman | cc53291 | 2005-12-04 18:39:43 +1100 | [diff] [blame] | 267 | * The minimum amount of code to allow a kexec'd kernel |
| 268 | * to run successfully needs to happen here. |
| 269 | * |
| 270 | * In practice this means stopping other cpus in |
| 271 | * an SMP system. |
| 272 | * The kernel is broken so disable interrupts. |
| 273 | */ |
Paul Mackerras | d04c56f | 2006-10-04 16:47:49 +1000 | [diff] [blame] | 274 | hard_irq_disable(); |
Michael Ellerman | cc53291 | 2005-12-04 18:39:43 +1100 | [diff] [blame] | 275 | |
Anton Blanchard | 249ec22 | 2010-08-02 20:39:41 +0000 | [diff] [blame] | 276 | /* |
| 277 | * Make a note of crashing cpu. Will be used in machine_kexec |
| 278 | * such that another IPI will not be sent. |
| 279 | */ |
| 280 | crashing_cpu = smp_processor_id(); |
| 281 | crash_save_cpu(regs, crashing_cpu); |
| 282 | crash_kexec_prepare_cpus(crashing_cpu); |
KOSAKI Motohiro | 104699c | 2011-04-28 05:07:23 +0000 | [diff] [blame] | 283 | cpumask_set_cpu(crashing_cpu, &cpus_in_crash); |
Anton Blanchard | 249ec22 | 2010-08-02 20:39:41 +0000 | [diff] [blame] | 284 | crash_kexec_wait_realmode(crashing_cpu); |
Anton Blanchard | 249ec22 | 2010-08-02 20:39:41 +0000 | [diff] [blame] | 285 | |
Matthew McClintock | c71635d | 2010-09-16 17:58:23 -0500 | [diff] [blame] | 286 | machine_kexec_mask_interrupts(); |
Michael Ellerman | d6c1a90 | 2006-04-04 13:43:01 +0200 | [diff] [blame] | 287 | |
Michael Ellerman | cc53291 | 2005-12-04 18:39:43 +1100 | [diff] [blame] | 288 | /* |
Michael Neuling | 496b010 | 2008-01-18 15:50:30 +1100 | [diff] [blame] | 289 | * Call registered shutdown routines savely. Swap out |
| 290 | * __debugger_fault_handler, and replace on exit. |
| 291 | */ |
| 292 | old_handler = __debugger_fault_handler; |
| 293 | __debugger_fault_handler = handle_fault; |
Anton Blanchard | 0644079 | 2010-05-10 16:25:51 +0000 | [diff] [blame] | 294 | crash_shutdown_cpu = smp_processor_id(); |
Michael Neuling | 496b010 | 2008-01-18 15:50:30 +1100 | [diff] [blame] | 295 | for (i = 0; crash_shutdown_handles[i]; i++) { |
| 296 | if (setjmp(crash_shutdown_buf) == 0) { |
| 297 | /* |
| 298 | * Insert syncs and delay to ensure |
| 299 | * instructions in the dangerous region don't |
| 300 | * leak away from this protected region. |
| 301 | */ |
| 302 | asm volatile("sync; isync"); |
| 303 | /* dangerous region */ |
| 304 | crash_shutdown_handles[i](); |
| 305 | asm volatile("sync; isync"); |
| 306 | } |
| 307 | } |
Anton Blanchard | 0644079 | 2010-05-10 16:25:51 +0000 | [diff] [blame] | 308 | crash_shutdown_cpu = -1; |
Michael Neuling | 496b010 | 2008-01-18 15:50:30 +1100 | [diff] [blame] | 309 | __debugger_fault_handler = old_handler; |
| 310 | |
David Wilder | c0ce7d0 | 2006-06-23 15:29:34 -0700 | [diff] [blame] | 311 | if (ppc_md.kexec_cpu_down) |
| 312 | ppc_md.kexec_cpu_down(1, 0); |
Michael Ellerman | cc53291 | 2005-12-04 18:39:43 +1100 | [diff] [blame] | 313 | } |