android_kernel_xiaomi_sm8350/arch/m68k
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
..
amiga cleanup after APUS removal 2008-02-06 10:41:01 -08:00
apollo m68k: missing __init 2007-07-20 08:24:49 -07:00
atari Introduce flags for reserve_bootmem() 2008-02-07 08:42:25 -08:00
bvme6000 m68k: missing __init 2007-07-20 08:24:49 -07:00
configs mac68k: remove dead MAC_ADBKEYCODES 2008-02-05 09:44:24 -08:00
fpsp040
hp300 m68k: kill arch/m68k/hp300/ksyms.c 2008-02-05 09:44:23 -08:00
ifpsp060 Convert files to UTF-8 and some cleanups 2007-10-19 23:21:04 +02:00
kernel Introduce flags for reserve_bootmem() 2008-02-07 08:42:25 -08:00
lib missing exports of csum_... 2007-07-17 11:01:07 -07:00
mac mac68k: remove dead code 2008-02-05 09:44:24 -08:00
math-emu spelling fixes: arch/m68k/ 2007-10-20 01:20:32 +02:00
mm pid namespaces: define is_global_init() and is_container_init() 2007-10-19 11:53:37 -07:00
mvme16x m68k: kill arch/m68k/mvme16x/mvme16x_ksyms.c 2008-02-05 09:44:24 -08:00
mvme147 m68k: missing __init 2007-07-20 08:24:49 -07:00
q40 spelling fixes: arch/m68k/ 2007-10-20 01:20:32 +02:00
sun3 spelling fixes: arch/m68k/ 2007-10-20 01:20:32 +02:00
sun3x m68k: missing __init 2007-07-20 08:24:49 -07:00
tools/amiga Convert files to UTF-8 and some cleanups 2007-10-19 23:21:04 +02:00
defconfig
Kconfig mac68k: remove dead MAC_ADBKEYCODES 2008-02-05 09:44:24 -08:00
Kconfig.debug
Makefile m68k: Use cc-cross-prefix 2008-02-05 09:44:23 -08:00