android_kernel_xiaomi_sm8350/arch/frv/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
break.S FRV: arrange things such that BRA can reach from the trap table 2007-11-29 09:24:54 -08:00
cmode.S
debug-stub.c
dma.c
entry-table.S
entry.S timerfd: fix remaining architectures 2008-02-05 14:37:15 -08:00
frv_ksyms.c
futex.c
gdb-io.c
gdb-io.h
gdb-stub.c Remove references to "make dep" 2008-01-28 23:22:13 +01:00
head-mmu-fr451.S
head-uc-fr401.S
head-uc-fr451.S
head-uc-fr555.S
head.inc
head.S
init_task.c
irq-mb93091.c remove asm/bitops.h includes 2007-10-19 11:53:41 -07:00
irq-mb93093.c remove asm/bitops.h includes 2007-10-19 11:53:41 -07:00
irq-mb93493.c remove asm/bitops.h includes 2007-10-19 11:53:41 -07:00
irq.c spelling fixes: arch/frv/ 2007-10-20 01:09:42 +02:00
kernel_execve.S
kernel_thread.S
local.h
Makefile
module.c
pm-mb93093.c
pm.c
process.c
ptrace.c
semaphore.c spelling fixes: arch/frv/ 2007-10-20 01:09:42 +02:00
setup.c Introduce flags for reserve_bootmem() 2008-02-07 08:42:25 -08:00
signal.c
sleep.S
switch_to.S
sys_frv.c
sysctl.c
time.c spelling fixes: arch/frv/ 2007-10-20 01:09:42 +02:00
traps.c
uaccess.c
vmlinux.lds.S FRV: permit the memory to be located elsewhere in NOMMU mode 2008-02-05 09:44:20 -08:00