android_kernel_xiaomi_sm8350/arch/mips/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
..
8250-platform.c
asm-offsets.c
binfmt_elfn32.c arch/mips/: Spelling fixes 2008-02-03 16:54:53 +02:00
binfmt_elfo32.c arch/mips/: Spelling fixes 2008-02-03 16:54:53 +02:00
branch.c
cevt-bcm1480.c
cevt-gt641xx.c
cevt-r4k.c
cevt-sb1250.c
cevt-txx9.c
cpu-bugs64.c [MIPS] R4000/R4400 errata workarounds 2008-01-29 10:14:54 +00:00
cpu-probe.c [MIPS] Alchemy: Au1210/Au1250 CPU support 2008-01-29 10:14:59 +00:00
csrc-bcm1480.c
csrc-r4k.c
csrc-sb1250.c
early_printk.c
entry.S
gdb-low.S
gdb-stub.c
genex.S [MIPS] R4000/R4400 daddiu erratum workaround 2008-01-29 10:14:55 +00:00
head.S [MIPS] Fix build after b0rked changes to <linux/init.h>. 2008-02-01 14:48:43 +00:00
i8253.c mips, x86: optimize the i8259 code a bit 2008-01-30 13:30:47 +01:00
i8259.c Driver core: change sysdev classes to use dynamic kobject names 2008-01-24 20:40:40 -08:00
init_task.c
irix5sys.S
irixelf.c
irixinv.c
irixioctl.c
irixsig.c
irq_cpu.c
irq_txx9.c
irq-gt641xx.c
irq-msc01.c
irq-rm7000.c
irq-rm9000.c
irq.c
kspd.c arch/mips/: Spelling fixes 2008-02-03 16:54:53 +02:00
linux32.c [MIPS] compat: handle argument endianess of sys32_(f)truncate64 with merge_64 2008-01-29 10:15:02 +00:00
machine_kexec.c
Makefile
mips_ksyms.c
mips-mt-fpaff.c cpu-hotplug: replace lock_cpu_hotplug() with get_online_cpus() 2008-01-25 21:08:02 +01:00
mips-mt.c [MIPS] SMP: Call platform methods via ops structure. 2008-01-29 10:14:57 +00:00
module.c
proc.c [MIPS]: constify function pointer tables 2008-01-29 10:15:03 +00:00
process.c
ptrace32.c
ptrace.c
r4k_fpu.S
r4k_switch.S
r2300_fpu.S
r2300_switch.S
r6000_fpu.S
relocate_kernel.S
reset.c
rtlx.c [MIPS] Remove duplicate includes. 2008-01-29 10:14:56 +00:00
scall32-o32.S timerfd: new timerfd API 2008-02-05 09:44:07 -08:00
scall64-64.S timerfd: new timerfd API 2008-02-05 09:44:07 -08:00
scall64-n32.S timerfd: new timerfd API 2008-02-05 09:44:07 -08:00
scall64-o32.S timerfd: new timerfd API 2008-02-05 09:44:07 -08:00
semaphore.c
setup.c Introduce flags for reserve_bootmem() 2008-02-07 08:42:25 -08:00
signal32.c
signal_n32.c
signal-common.h
signal.c
smp-mt.c [MIPS] SMP: Call platform methods via ops structure. 2008-01-29 10:14:57 +00:00
smp-up.c
smp.c calibrate_delay() must be __cpuinit 2008-02-06 10:41:08 -08:00
smtc-asm.S
smtc-proc.c [MIPS] SMP: Call platform methods via ops structure. 2008-01-29 10:14:57 +00:00
smtc.c arch/mips/: Spelling fixes 2008-02-03 16:54:53 +02:00
stacktrace.c
syscall.c
sysirix.c get rid of NR_OPEN and introduce a sysctl_nr_open 2008-02-06 10:41:06 -08:00
time.c [MIPS] time: remove unused mips_timer_state() 2008-01-29 10:15:00 +00:00
topology.c
traps.c
unaligned.c
vmlinux.lds.S all archs: consolidate init and exit sections in vmlinux.lds.h 2008-01-28 23:21:17 +01:00
vpe.c [MIPS] Remove duplicate includes. 2008-01-29 10:14:56 +00:00