kernel-ark/arch/s390/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
audit.c [S390] Get rid of a bunch of sparse warnings again. 2007-10-12 16:13:06 +02:00
audit.h [S390] Get rid of a bunch of sparse warnings again. 2007-10-12 16:13:06 +02:00
base.S
binfmt_elf32.c
bitmap.S
compat_audit.c [S390] Get rid of a bunch of sparse warnings again. 2007-10-12 16:13:06 +02:00
compat_exec_domain.c
compat_linux.c remove include/asm-*/ipc.h 2007-10-17 08:42:55 -07:00
compat_linux.h
compat_ptrace.h
compat_signal.c
compat_wrapper.S timerfd: new timerfd API 2008-02-05 09:44:07 -08:00
cpcmd.c [S390] cpcmd: fix inline assembly usage. 2007-10-12 16:13:09 +02:00
crash.c
debug.c
diag.c
dis.c [S390] disassembler: Remove redundant variable assignment 2007-10-12 16:13:06 +02:00
early.c [S390] Get rid of additional_cpus kernel parameter. 2008-01-26 14:11:15 +01:00
ebcdic.c
entry64.S [S390] Fix couple of section mismatches. 2008-02-05 16:50:56 +01:00
entry.S [S390] Fix couple of section mismatches. 2008-02-05 16:50:56 +01:00
head31.S
head64.S [S390] Fix tlb flushing with idte. 2008-01-26 14:11:10 +01:00
head.S
init_task.c
ipl.c [S390] Fix couple of section mismatches. 2008-02-05 16:50:56 +01:00
irq.c
kprobes.c kprobes: support kretprobe blacklist 2007-10-16 09:43:10 -07:00
machine_kexec.c
Makefile [S390] Remove TOPDIR from Makefile 2008-01-26 14:11:29 +01:00
module.c
process.c [S390] Print kernel version in dump_stack() and show_regs(). 2008-01-26 14:11:12 +01:00
ptrace.c [S390] single-step cleanup 2008-01-26 14:11:27 +01:00
reipl64.S
reipl.S
relocate_kernel64.S
relocate_kernel.S
s390_ext.c
s390_ksyms.c
semaphore.c
setup.c Introduce flags for reserve_bootmem() 2008-02-07 08:42:25 -08:00
signal.c [S390] single-step cleanup 2008-01-26 14:11:27 +01:00
smp.c [S390] Fix couple of section mismatches. 2008-02-05 16:50:56 +01:00
stacktrace.c [S390] latencytop s390 support. 2008-02-05 16:50:59 +01:00
sys_s390.c remove include/asm-*/ipc.h 2007-10-17 08:42:55 -07:00
syscalls.S timerfd: new timerfd API 2008-02-05 09:44:07 -08:00
time.c Driver core: change sysdev classes to use dynamic kobject names 2008-01-24 20:40:40 -08:00
traps.c [S390] DEBUG_PAGEALLOC support for s390. 2008-02-05 16:50:54 +01:00
vmlinux.lds.S [S390] Fix linker script. 2008-02-05 16:50:55 +01:00
vtime.c sched: restore deterministic CPU accounting on powerpc 2007-11-09 22:39:38 +01:00