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
..
2008-01-30 13:30:35 +01:00
2008-01-30 13:30:35 +01:00
2008-01-30 13:30:35 +01:00
2008-01-30 13:30:35 +01:00
2007-10-23 22:37:23 +02:00
2008-01-30 13:34:07 +01:00
2008-01-30 13:31:24 +01:00
2007-10-17 20:17:13 +02:00
2008-01-30 13:31:19 +01:00
2008-01-30 13:30:28 +01:00
2008-02-04 16:48:04 +01:00
2007-10-17 20:17:15 +02:00
2008-01-30 13:34:09 +01:00
2008-02-03 16:32:51 +02:00
2007-10-17 20:17:08 +02:00
2008-01-30 13:31:14 +01:00
2008-01-30 13:31:51 +01:00
2007-10-23 22:37:23 +02:00
2007-10-22 21:20:01 +02:00
2007-10-16 11:26:02 +02:00
2008-01-30 13:30:20 +01:00
2008-01-30 13:33:32 +01:00
2007-10-17 20:17:19 +02:00
2008-02-04 16:48:06 +01:00
2008-01-30 13:33:16 +01:00
2007-10-17 20:17:08 +02:00
2007-10-17 20:17:21 +02:00
2007-10-17 20:24:56 +02:00
2008-01-30 13:33:09 +01:00
2008-01-30 13:33:35 +01:00
2008-02-04 16:48:03 +01:00
2008-01-30 13:33:14 +01:00
2008-01-30 13:33:14 +01:00
2008-01-30 13:30:46 +01:00
2008-01-30 13:30:28 +01:00
2008-01-30 13:34:09 +01:00
2007-10-17 20:26:11 +02:00
2007-10-30 00:22:22 +01:00
2008-01-30 13:30:33 +01:00
2008-01-30 13:30:16 +01:00
2008-01-30 17:53:08 +02:00
2008-01-30 13:31:26 +01:00
2008-01-30 13:31:27 +01:00
2007-10-17 20:16:47 +02:00
2008-01-30 22:50:04 +11:00
2008-01-30 13:33:00 +01:00
2008-01-30 13:31:26 +01:00
2008-01-30 13:31:55 +01:00
2007-10-17 20:26:15 +02:00
2008-01-30 13:31:43 +01:00
2008-01-30 13:30:35 +01:00
2008-01-30 13:30:36 +01:00
2007-10-23 22:37:24 +02:00
2008-01-30 13:33:18 +01:00
2008-01-30 13:30:31 +01:00
2008-01-30 13:34:10 +01:00
2008-01-30 13:34:06 +01:00
2008-02-04 16:48:09 +01:00
2008-01-30 13:30:31 +01:00
2008-01-30 13:30:38 +01:00
2008-01-30 13:31:25 +01:00
2008-01-30 13:32:53 +01:00
2008-01-30 13:33:42 +01:00
2008-02-04 16:48:06 +01:00
2007-10-17 20:17:08 +02:00
2007-10-17 20:17:08 +02:00
2008-01-30 13:33:00 +01:00
2007-10-17 20:17:08 +02:00
2008-01-30 13:33:00 +01:00
2007-10-17 08:42:47 -07:00
2007-10-23 22:37:24 +02:00
2008-01-30 13:30:50 +01:00
2008-01-30 13:31:21 +01:00
2008-01-30 13:33:00 +01:00
2007-10-23 22:37:24 +02:00
2007-10-23 22:37:24 +02:00
2008-01-30 13:31:12 +01:00
2008-02-04 16:48:03 +01:00
2008-02-06 10:41:02 -08:00
2007-10-17 20:26:18 +02:00
2008-01-30 13:30:35 +01:00
2008-01-30 13:33:24 +01:00
2007-10-17 20:32:07 +02:00
2007-10-17 20:32:38 +02:00
2008-01-30 13:30:42 +01:00
2008-02-04 16:48:04 +01:00
2008-01-30 13:32:39 +01:00