kernel-ark/arch/mips
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
..
au1000 Remove inclusions of <linux/autoconf.h> 2008-02-06 10:41:00 -08:00
basler/excite [MIPS]: constify function pointer tables 2008-01-29 10:15:03 +00:00
bcm47xx [MIPS] Kill duplicated setup_irq() for cp0 timer 2007-10-19 18:15:58 +01:00
boot [MIPS] checkfiles: Fix "need space after that ','" errors. 2007-10-11 23:46:15 +01:00
cobalt [MIPS] add cpu_wait() to machine_halt() 2008-01-29 10:15:00 +00:00
configs [MIPS] Qemu: Remove platform. 2008-01-29 10:15:02 +00:00
dec [MIPS] time: remove unused mips_timer_state() 2008-01-29 10:15:00 +00:00
emma2rh [MIPS] Kill duplicated setup_irq() for cp0 timer 2007-10-19 18:15:58 +01:00
fw [MIPS] RM: Collected changes 2008-01-29 10:14:59 +00:00
gt64120/wrppmc [MIPS] remove unused mips_machtype 2008-01-29 10:14:55 +00:00
jazz [MIPS] Cleanup pcspeaker platform device registration. 2008-01-29 10:14:57 +00:00
jmr3927 [MIPS] TXx9 watchdog support for rbhma3100,rbhma4200,rbhma4500 2008-01-29 10:14:58 +00:00
kernel Introduce flags for reserve_bootmem() 2008-02-07 08:42:25 -08:00
lasat [MIPS] Lasat: Convert pvc_sem semaphore to mutex 2008-01-29 10:15:01 +00:00
lemote/lm2e [MIPS] Fulong: don't reinitialize pci_probe_only to it's default value. 2008-01-29 10:14:59 +00:00
lib [MIPS] Eleminate local symbols from the symbol table. 2008-01-29 10:14:59 +00:00
math-emu [MIPS] Compliment va_start() with va_end(). 2007-11-26 17:26:15 +00:00
mips-boards [MIPS] Malta: remaining bits of the board support code cleanup 2008-01-29 10:15:05 +00:00
mipssim [MIPS] SMP: Call platform methods via ops structure. 2008-01-29 10:14:57 +00:00
mm arch/mips/: Spelling fixes 2008-02-03 16:54:53 +02:00
oprofile [MIPS] Extend performance counter event field. 2008-01-29 10:14:59 +00:00
pci [MIPS] BCM1480: Use constants instead of magic numbers in PCI code. 2008-01-29 10:14:59 +00:00
philips/pnx8550 [MIPS] pnx8xxx: clocksource cleanups 2008-01-29 10:15:01 +00:00
pmc-sierra [MIPS] SMP: Call platform methods via ops structure. 2008-01-29 10:14:57 +00:00
sgi-ip22 [MIPS] IP28 support 2008-01-29 10:14:58 +00:00
sgi-ip27 Introduce flags for reserve_bootmem() 2008-02-07 08:42:25 -08:00
sgi-ip32 [MIPS] Fix IP32 breakage 2008-01-07 15:32:03 +00:00
sibyte [MIPS] Remove CONFIG_SIBYTE_PT{1120,1125,SWARM} 2008-01-29 10:14:58 +00:00
sni [MIPS] RM: Collected changes 2008-01-29 10:14:59 +00:00
tx4927 Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus 2008-01-29 22:48:03 +11:00
tx4938 Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus 2008-01-29 22:48:03 +11:00
vr41xx [MIPS] move vr41xx_calculate_clock_frequency() to plat_time_init() 2008-01-29 10:15:00 +00:00
defconfig [MIPS] Qemu: Remove platform. 2008-01-29 10:15:02 +00:00
Kconfig Merge git://git.kernel.org/pub/scm/linux/kernel/git/bunk/trivial 2008-02-04 07:58:52 -08:00
Kconfig.debug [MIPS] Kbuild: Use the new cc-cross-prefix feature. 2007-10-22 22:09:01 +01:00
Makefile [MIPS] Qemu: Remove platform. 2008-01-29 10:15:02 +00:00