[Patch 6/8] powerpc: implement crashkernel=auto
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: linux-kernel@xxxxxxxxxxxxxxx
- Subject: [Patch 6/8] powerpc: implement crashkernel=auto
- From: Amerigo Wang <amwang@xxxxxxxxxx>
- Date: Wed, 12 Aug 2009 04:16:20 -0400
- Cc: tony.luck@xxxxxxxxx, linux-ia64@xxxxxxxxxxxxxxx, Neil Horman <nhorman@xxxxxxxxxx>, "Eric W. Biederman" <ebiederm@xxxxxxxxxxxx>, Andi Kleen <andi@xxxxxxxxxxxxxx>, Amerigo Wang <amwang@xxxxxxxxxx>, akpm@xxxxxxxxxxxxxxxxxxxx, bernhard.walle@xxxxxx, Fenghua Yu <fenghua.yu@xxxxxxxxx>, Ingo Molnar <mingo@xxxxxxx>, Anton Vorontsov <avorontsov@xxxxxxxxxxxxx>
- In-reply-to: <20090812081731.5757.25254.sendpatchset@xxxxxxxxxxxxxxxxxxxxx>
- List-id: <linux-ia64.vger.kernel.org>
- References: <20090812081731.5757.25254.sendpatchset@xxxxxxxxxxxxxxxxxxxxx>
Since in patch 2/8 we already implement the generic part, this will
add the rest part for powerpc.
Signed-off-by: WANG Cong <amwang@xxxxxxxxxx>
---
Index: linux-2.6/arch/powerpc/include/asm/kexec.h
===================================================================
--- linux-2.6.orig/arch/powerpc/include/asm/kexec.h
+++ linux-2.6/arch/powerpc/include/asm/kexec.h
@@ -39,6 +39,14 @@ typedef void (*crash_shutdown_t)(void);
#ifdef CONFIG_KEXEC
+#ifdef CONFIG_KEXEC_AUTO_RESERVE
+#ifdef KEXEC_AUTO_RESERVED_SIZE
+#undef KEXEC_AUTO_RESERVED_SIZE
+#endif
+#define KEXEC_AUTO_RESERVED_SIZE (1ULL<<28) /* 256M */
+#include <asm-generic/kexec.h>
+#endif
+
/*
* This function is responsible for capturing register states if coming
* via panic or invoking dump using sysrq-trigger.
--
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]