android_kernel_xiaomi_sm8350/arch/sh/mm
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
..
cache-debugfs.c sh: Preparation for uncached jumps through PMB. 2008-01-28 13:18:59 +09:00
cache-sh2.c
cache-sh3.c
cache-sh4.c sh: Preparation for uncached jumps through PMB. 2008-01-28 13:18:59 +09:00
cache-sh5.c sh: comment tidying for sh64->sh migration. 2008-01-28 13:18:58 +09:00
cache-sh7705.c sh: Preparation for uncached jumps through PMB. 2008-01-28 13:18:59 +09:00
consistent.c sh: declared coherent memory support V2 2008-01-28 13:19:04 +09:00
extable_32.c sh: Split out extable.c _32 and _64 variants. 2008-01-28 13:18:44 +09:00
extable_64.c sh: comment tidying for sh64->sh migration. 2008-01-28 13:18:58 +09:00
fault_32.c sh: Correct pte size mismatch for X2 TLB. 2008-01-28 13:19:02 +09:00
fault_64.c sh: Kill off a stray proc tlb reference in fault_64. 2008-01-28 13:18:52 +09:00
hugetlbpage.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
init.c sh: Populate swapper_pg_dir with fixmap range. 2008-01-28 13:18:59 +09:00
ioremap_32.c sh: Split out ioremap in to _32 and _64 variants. 2008-01-28 13:18:46 +09:00
ioremap_64.c sh: Split out pgtable.h in to _32 and _64 variants. 2008-01-28 13:18:47 +09:00
Kconfig sh: Bump the MEMORY_SIZE default to something reasonable. 2008-01-28 13:18:52 +09:00
Makefile sh: Split out extable.c _32 and _64 variants. 2008-01-28 13:18:44 +09:00
Makefile_32 sh: clear/copy_page renames in lib and lib64. 2008-01-28 13:18:54 +09:00
Makefile_64 sh: Rename the _32 and _64 TLB flush variants. 2008-01-28 13:18:54 +09:00
numa.c Introduce flags for reserve_bootmem() 2008-02-07 08:42:25 -08:00
pg-nommu.c sh: Tidy up various clear_page()/copy_page() definitions. 2008-01-28 13:18:50 +09:00
pg-sh4.c sh: Optimized copy_{to,from}_user_page() for SH-4. 2007-11-07 11:14:12 +09:00
pg-sh7705.c sh: Revert lazy dcache writeback changes. 2007-03-05 19:46:47 +09:00
pmb.c sh: Preparation for uncached jumps through PMB. 2008-01-28 13:18:59 +09:00
tlb-nommu.c sh: Provide a stubbed __set_fixmap() for nommu. 2008-01-28 13:19:01 +09:00
tlb-sh3.c sh: Revert lazy dcache writeback changes. 2007-03-05 19:46:47 +09:00
tlb-sh4.c sh: Preparation for uncached jumps through PMB. 2008-01-28 13:18:59 +09:00
tlb-sh5.c sh: comment tidying for sh64->sh migration. 2008-01-28 13:18:58 +09:00
tlbflush_32.c sh: Rename the _32 and _64 TLB flush variants. 2008-01-28 13:18:54 +09:00
tlbflush_64.c sh: Rename the _32 and _64 TLB flush variants. 2008-01-28 13:18:54 +09:00