From patchwork Fri Jan 7 03:54:15 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Blanchard X-Patchwork-Id: 77841 X-Patchwork-Delegate: benh@kernel.crashing.org Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from bilbo.ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id 6BF79B72DB for ; Fri, 7 Jan 2011 14:54:26 +1100 (EST) Received: by ozlabs.org (Postfix) id 99BCAB714F; Fri, 7 Jan 2011 14:54:20 +1100 (EST) Delivered-To: linuxppc-dev@ozlabs.org Received: from kryten (ppp121-44-56-164.lns20.syd6.internode.on.net [121.44.56.164]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPSA id 6FD1EB714E; Fri, 7 Jan 2011 14:54:20 +1100 (EST) Date: Fri, 7 Jan 2011 14:54:15 +1100 From: Anton Blanchard To: benh@kernel.crashing.org Subject: [PATCH 1/8] powerpc: Move all ppc_md kexec function pointers together Message-ID: <20110107145415.4fa304eb@kryten> In-Reply-To: <20110107145255.72cf30ba@kryten> References: <20110107145255.72cf30ba@kryten> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.22.0; i486-pc-linux-gnu) Mime-Version: 1.0 Cc: linuxppc-dev@ozlabs.org X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Move all the kexec handlers together. Signed-off-by: Anton Blanchard 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?