android_kernel_xiaomi_sm8350/arch/m68k/kernel
Bernhard Walle 72a7fe3967 Introduce flags for reserve_bootmem()
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>
2008-02-07 08:42:25 -08:00
..
asm-offsets.c
bios32.c
dma.c m68k: sg fallout 2007-10-24 08:55:40 +02:00
entry.S timerfd: new timerfd API 2008-02-05 09:44:07 -08:00
head.S m68k: use .text.head 2007-07-20 08:24:49 -07:00
ints.c take declarations of enable_irq() et.al. to linux/interrupt.h 2007-07-22 11:44:00 -07:00
m68k_ksyms.c
Makefile
module.c
module.lds
process.c Remove fs.h from mm.h 2007-07-29 17:09:29 -07:00
ptrace.c Consolidate PTRACE_DETACH 2007-10-16 09:42:49 -07:00
semaphore.c
setup.c Introduce flags for reserve_bootmem() 2008-02-07 08:42:25 -08:00
signal.c
sun3-head.S m68k: use .text.head 2007-07-20 08:24:49 -07:00
sys_m68k.c remove include/asm-*/ipc.h 2007-10-17 08:42:55 -07:00
time.c m68k: missing __init 2007-07-20 08:24:49 -07:00
traps.c Use helpers to obtain task pid in printks (arch code) 2007-10-19 11:53:43 -07:00
vmlinux-std.lds all archs: consolidate init and exit sections in vmlinux.lds.h 2008-01-28 23:21:17 +01:00
vmlinux-sun3.lds all archs: consolidate init and exit sections in vmlinux.lds.h 2008-01-28 23:21:17 +01:00
vmlinux.lds.S