72a7fe3967
This patchset adds a flags variable to reserve_bootmem() and uses the BOOTMEM_EXCLUSIVE flag in crashkernel reservation code to detect collisions between crashkernel area and already used memory. This patch: Change the reserve_bootmem() function to accept a new flag BOOTMEM_EXCLUSIVE. If that flag is set, the function returns with -EBUSY if the memory already has been reserved in the past. This is to avoid conflicts. Because that code runs before SMP initialisation, there's no race condition inside reserve_bootmem_core(). [akpm@linux-foundation.org: coding-style fixes] [akpm@linux-foundation.org: fix powerpc build] Signed-off-by: Bernhard Walle <bwalle@suse.de> Cc: <linux-arch@vger.kernel.org> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Cc: Vivek Goyal <vgoyal@in.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> |
||
---|---|---|
.. | ||
8250-platform.c | ||
asm-offsets.c | ||
binfmt_elfn32.c | ||
binfmt_elfo32.c | ||
branch.c | ||
cevt-bcm1480.c | ||
cevt-gt641xx.c | ||
cevt-r4k.c | ||
cevt-sb1250.c | ||
cevt-txx9.c | ||
cpu-bugs64.c | ||
cpu-probe.c | ||
csrc-bcm1480.c | ||
csrc-r4k.c | ||
csrc-sb1250.c | ||
early_printk.c | ||
entry.S | ||
gdb-low.S | ||
gdb-stub.c | ||
genex.S | ||
head.S | ||
i8253.c | ||
i8259.c | ||
init_task.c | ||
irix5sys.S | ||
irixelf.c | ||
irixinv.c | ||
irixioctl.c | ||
irixsig.c | ||
irq_cpu.c | ||
irq_txx9.c | ||
irq-gt641xx.c | ||
irq-msc01.c | ||
irq-rm7000.c | ||
irq-rm9000.c | ||
irq.c | ||
kspd.c | ||
linux32.c | ||
machine_kexec.c | ||
Makefile | ||
mips_ksyms.c | ||
mips-mt-fpaff.c | ||
mips-mt.c | ||
module.c | ||
proc.c | ||
process.c | ||
ptrace32.c | ||
ptrace.c | ||
r4k_fpu.S | ||
r4k_switch.S | ||
r2300_fpu.S | ||
r2300_switch.S | ||
r6000_fpu.S | ||
relocate_kernel.S | ||
reset.c | ||
rtlx.c | ||
scall32-o32.S | ||
scall64-64.S | ||
scall64-n32.S | ||
scall64-o32.S | ||
semaphore.c | ||
setup.c | ||
signal32.c | ||
signal_n32.c | ||
signal-common.h | ||
signal.c | ||
smp-mt.c | ||
smp-up.c | ||
smp.c | ||
smtc-asm.S | ||
smtc-proc.c | ||
smtc.c | ||
stacktrace.c | ||
syscall.c | ||
sysirix.c | ||
time.c | ||
topology.c | ||
traps.c | ||
unaligned.c | ||
vmlinux.lds.S | ||
vpe.c |