android_kernel_xiaomi_sm8350/arch/arm/plat-omap
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
..
clock.c
common.c ARM: OMAP: Fix 32k timer unsupported one-shot mode 2007-08-22 00:42:50 -07:00
cpu-omap.c [CPUFREQ] move policy's governor initialisation out of low-level drivers into cpufreq core 2007-10-04 18:40:57 -04:00
debug-devices.c [NET] smc91x: Make smc91x use IRQ resource trigger flags 2008-01-28 13:13:19 +00:00
debug-leds.c
devices.c
dma.c Convert files to UTF-8 and some cleanups 2007-10-19 23:21:04 +02:00
dmtimer.c ARM: OMAP: fix OMAP1 dmtimer build warning 2007-08-22 00:42:50 -07:00
fb.c Introduce flags for reserve_bootmem() 2008-02-07 08:42:25 -08:00
gpio.c Driver core: change sysdev classes to use dynamic kobject names 2008-01-24 20:40:40 -08:00
Kconfig ARM: OMAP: abstract debug card setup (smc, leds) 2007-09-20 09:59:20 -07:00
mailbox.c Merge branch 'blk-end-request' of git://git.kernel.dk/linux-2.6-block 2008-01-29 08:51:32 +11:00
mailbox.h
Makefile ARM: OMAP: abstract debug card setup (smc, leds) 2007-09-20 09:59:20 -07:00
mcbsp.c [ARM] Misc minor interrupt handler cleanups 2008-01-26 14:49:59 +00:00
mux.c ARM: OMAP: 24xx pinmux updates 2007-05-10 15:51:09 -07:00
ocpi.c
sram-fn.S
sram.c [ARM] spelling fixes 2007-05-20 20:10:32 +01:00
timer32k.c ARM: OMAP: Fix 32k timer unsupported one-shot mode 2007-08-22 00:42:50 -07:00
usb.c [ARM] spelling fixes 2007-05-20 20:10:32 +01:00