android_kernel_xiaomi_sm8350/arch/arm/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
..
abort-ev4.S
abort-ev4t.S
abort-ev5t.S
abort-ev5tj.S
abort-ev6.S
abort-ev7.S [ARM] armv7: add support for ARMv7 cores. 2007-05-08 22:55:53 +01:00
abort-lv4t.S
abort-macro.S
abort-nommu.S
alignment.c Use helpers to obtain task pid in printks (arch code) 2007-10-19 11:53:43 -07:00
cache-l2x0.c [ARM] 4568/1: fix l2x0 cache invalidate handling of unaligned addresses 2007-09-17 14:56:39 +01:00
cache-v3.S
cache-v4.S
cache-v4wb.S
cache-v4wt.S
cache-v6.S
cache-v7.S [ARM] armv7: add support for ARMv7 cores. 2007-05-08 22:55:53 +01:00
consistent.c [ARM] remove useless setting of VM_RESERVED 2007-11-11 10:55:25 +00:00
context.c Merge branches 'armv7', 'at91', 'misc' and 'omap' into devel 2007-05-09 10:41:28 +01:00
copypage-v3.S
copypage-v4mc.c [ARM] 4078/1: Fix ARM copypage cache coherency problems 2006-12-30 17:05:08 +00:00
copypage-v4wb.S
copypage-v4wt.S
copypage-v6.c [ARM] 4078/1: Fix ARM copypage cache coherency problems 2006-12-30 17:05:08 +00:00
copypage-xsc3.S
copypage-xscale.c [ARM] 4078/1: Fix ARM copypage cache coherency problems 2006-12-30 17:05:08 +00:00
discontig.c
extable.c
fault-armv.c [ARM] 4191/1: Remove redundant __flush_dcache_page() function prototype 2007-02-16 12:57:55 +00:00
fault.c ARM kprobes: prevent some functions involved with kprobes from being probed 2008-01-26 15:25:17 +00:00
fault.h
flush.c [ARM] Resolve fuse and direct-IO failures due to missing cache flushes 2007-01-08 19:49:58 +00:00
init.c Introduce flags for reserve_bootmem() 2008-02-07 08:42:25 -08:00
iomap.c
ioremap.c add mm argument to pte/pmd/pud/pgd_free 2008-02-05 09:44:18 -08:00
Kconfig Merge branch 'orion' into devel 2008-01-28 13:21:30 +00:00
Makefile [ARM] Marvell Feroceon CPU core support 2008-01-26 15:03:38 +00:00
mm.h [ARM] mm 6: allow mem_types table to specify extended pte attributes 2007-04-21 20:36:02 +01:00
mmap.c Detach sched.h from mm.h 2007-05-21 09:18:19 -07:00
mmu.c Introduce flags for reserve_bootmem() 2008-02-07 08:42:25 -08:00
nommu.c Introduce flags for reserve_bootmem() 2008-02-07 08:42:25 -08:00
pgd.c add mm argument to pte/pmd/pud/pgd_free 2008-02-05 09:44:18 -08:00
proc-arm6_7.S [ARM] Unuse another Linux PTE bit 2006-12-13 14:34:43 +00:00
proc-arm7tdmi.S
proc-arm9tdmi.S
proc-arm720.S [ARM] Unuse another Linux PTE bit 2006-12-13 14:34:43 +00:00
proc-arm740.S
proc-arm920.S [ARM] Unuse another Linux PTE bit 2006-12-13 14:34:43 +00:00
proc-arm922.S [ARM] Unuse another Linux PTE bit 2006-12-13 14:34:43 +00:00
proc-arm925.S [ARM] Unuse another Linux PTE bit 2006-12-13 14:34:43 +00:00
proc-arm926.S [ARM] Fix FIQ issue with ARM926 2007-10-31 15:21:40 +00:00
proc-arm940.S
proc-arm946.S
proc-arm1020.S [ARM] Unuse another Linux PTE bit 2006-12-13 14:34:43 +00:00
proc-arm1020e.S [ARM] Unuse another Linux PTE bit 2006-12-13 14:34:43 +00:00
proc-arm1022.S [ARM] Unuse another Linux PTE bit 2006-12-13 14:34:43 +00:00
proc-arm1026.S [ARM] Unuse another Linux PTE bit 2006-12-13 14:34:43 +00:00
proc-feroceon.S [ARM] Feroceon: support old cores with ARM926 ID 2008-01-26 15:03:41 +00:00
proc-macros.S [ARM] armv7: add support for ARMv7 cores. 2007-05-08 22:55:53 +01:00
proc-sa110.S [ARM] Unuse another Linux PTE bit 2006-12-13 14:34:43 +00:00
proc-sa1100.S [ARM] Unuse another Linux PTE bit 2006-12-13 14:34:43 +00:00
proc-syms.c [ARM] 4502/1: nommu: Do not export the copy/clear user page functions 2007-07-20 21:29:51 +01:00
proc-v6.S Merge Realview GIC code 2007-02-15 15:07:40 +00:00
proc-v7.S [ARM] 4503/1: nommu: Add noMMU support for ARMv7 2007-07-20 21:42:13 +01:00
proc-xsc3.S [ARM] 4123/1: xsc3: general cleanup 2007-02-08 14:48:44 +00:00
proc-xscale.S [ARM] 4311/1: ixp4xx: add KIXRP435 platform 2007-04-21 20:51:55 +01:00
tlb-v3.S
tlb-v4.S
tlb-v4wb.S
tlb-v4wbi.S
tlb-v6.S [ARM] 4129/1: Add barriers after the TLB operations 2007-02-08 14:49:27 +00:00
tlb-v7.S [ARM] 4394/1: ARMv7: Add the TLB range operations 2007-05-30 14:32:07 +01:00