linux-stable-rt/arch/blackfin/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
..
cplb-mpu [Blackfin] arch: Initial checkin of the memory protection support. 2008-01-27 18:39:16 +08:00
cplb-nompu [Blackfin] arch: Fix bug - kernel build with Debug option enabled fails to boot up 2008-01-22 19:23:50 +08:00
Makefile [Blackfin] arch: move all code related to CPLB handling into a new subdirectory under kernel/ 2008-01-11 16:58:44 +08:00
asm-offsets.c
bfin_dma_5xx.c [Blackfin] arch: set_bfin_dma_config shouldnt set SYNC or RESTART by default - add argument or option 2008-01-22 15:29:18 +08:00
bfin_gpio.c [Blackfin] arch: Fix BUG gpio_direction_output API is not compatitable with GENERIC_GPIO API interface 2008-01-22 18:36:20 +08:00
bfin_ksyms.c
dma-mapping.c
dualcore_test.c
early_printk.c
entry.S
fixed_code.S
flat.c
gptimers.c
init_task.c
irqchip.c
kgdb.c
module.c
process.c
ptrace.c
reboot.c [Blackfin] arch: Add proper SW System Reset delay sequence 2008-01-22 18:38:02 +08:00
setup.c Introduce flags for reserve_bootmem() 2008-02-07 08:42:25 -08:00
signal.c
sys_bfin.c
time.c
traps.c
vmlinux.lds.S all archs: consolidate init and exit sections in vmlinux.lds.h 2008-01-28 23:21:17 +01:00