linux/arch/arm
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
..
boot
common
configs
kernel add mm argument to pte/pmd/pud/pgd_free 2008-02-05 09:44:18 -08:00
lib
mach-aaec2000
mach-at91 atmel_lcdfb: backlight control 2008-02-06 10:41:16 -08:00
mach-clps711x
mach-clps7500
mach-davinci
mach-ebsa110
mach-ep93xx
mach-footbridge
mach-h720x
mach-imx
mach-integrator
mach-iop13xx
mach-iop32x
mach-iop33x
mach-ixp4xx
mach-ixp23xx
mach-ixp2000
mach-ks8695
mach-l7200
mach-lh7a40x
mach-msm
mach-mx3
mach-netx
mach-ns9xxx
mach-omap1
mach-omap2
mach-orion
mach-pnx4008
mach-pxa gpiolib support for the PXA architecture 2008-02-05 09:44:13 -08:00
mach-realview
mach-rpc Rename: linux/pata_platform.h to linux/ata_platform.h 2008-02-06 06:54:17 -05:00
mach-s3c2400
mach-s3c2410
mach-s3c2412
mach-s3c2440
mach-s3c2442
mach-s3c2443
mach-sa1100
mach-shark
mach-versatile
mm Introduce flags for reserve_bootmem() 2008-02-07 08:42:25 -08:00
nwfpe
oprofile
plat-iop
plat-mxc
plat-omap Introduce flags for reserve_bootmem() 2008-02-07 08:42:25 -08:00
plat-s3c
plat-s3c24xx
tools
vfp
Kconfig gpiolib support for the PXA architecture 2008-02-05 09:44:13 -08:00
Kconfig-nommu
Kconfig.debug
Makefile