Patchwork [1/8] powerpc: Move all ppc_md kexec function pointers together

login
register
mail settings
Submitter Anton Blanchard
Date Jan. 7, 2011, 3:54 a.m.
Message ID <20110107145415.4fa304eb@kryten>
Download mbox | patch
Permalink /patch/77841/
State Accepted, archived
Commit 50266a1f8a6618f2e477635cfcf457b5da8d5a68
Delegated to: Benjamin Herrenschmidt
Headers show

Comments

Anton Blanchard - Jan. 7, 2011, 3:54 a.m.
Move all the kexec handlers together.

Signed-off-by: Anton Blanchard <anton@samba.org>
---

Patch

Index: powerpc.git/arch/powerpc/include/asm/machdep.h
===================================================================
--- powerpc.git.orig/arch/powerpc/include/asm/machdep.h	2011-01-07 12:50:52.020438276 +1100
+++ powerpc.git/arch/powerpc/include/asm/machdep.h	2011-01-07 12:51:46.682161055 +1100
@@ -118,9 +118,6 @@  struct machdep_calls {
 	 * If for some reason there is no irq, but the interrupt
 	 * shouldn't be counted as spurious, return NO_IRQ_IGNORE. */
 	unsigned int	(*get_irq)(void);
-#ifdef CONFIG_KEXEC
-	void		(*kexec_cpu_down)(int crash_shutdown, int secondary);
-#endif
 
 	/* PCI stuff */
 	/* Called after scanning the bus, before allocating resources */
@@ -237,6 +234,8 @@  struct machdep_calls {
 	void (*machine_shutdown)(void);
 
 #ifdef CONFIG_KEXEC
+	void (*kexec_cpu_down)(int crash_shutdown, int secondary);
+
 	/* Called to do the minimal shutdown needed to run a kexec'd kernel
 	 * to run successfully.
 	 * XXX Should we move this one out of kexec scope?