summaryrefslogtreecommitdiffstats
path: root/arch/xtensa/include/asm/sysmem.h
diff options
context:
space:
mode:
authorChris Zankel <chris@zankel.net>2016-08-03 22:30:00 +0000
committerChris Zankel <chris@zankel.net>2016-08-03 22:30:00 +0000
commit9e8511ff7e3f18df7d202da06c9704d940fa68f9 (patch)
treee6fe856effe9a41693d58b947b18e0345fe9dc9b /arch/xtensa/include/asm/sysmem.h
parent523d939ef98fd712632d93a5a2b588e477a7565e (diff)
parentd8d2f7f64592f3e8c51dac6d20aed044dca4009a (diff)
downloadblackbird-op-linux-9e8511ff7e3f18df7d202da06c9704d940fa68f9.tar.gz
blackbird-op-linux-9e8511ff7e3f18df7d202da06c9704d940fa68f9.zip
Merge tag 'xtensa-for-next-20160731' of git://github.com/jcmvbkbc/linux-xtensa into for_next
Xtensa improvements for 4.8: - add new kernel memory layouts for MMUv3 cores: with 256MB and 512MB KSEG size, starting at physical address other than 0; - make kernel load address configurable; - clean up kernel memory layout macros; - drop sysmem early allocator and switch to memblock; - enable kmemleak and memory reservation from the device tree; - wire up new syscalls: userfaultfd, membarrier, mlock2, copy_file_range, preadv2 and pwritev2.
Diffstat (limited to 'arch/xtensa/include/asm/sysmem.h')
-rw-r--r--arch/xtensa/include/asm/sysmem.h21
1 files changed, 1 insertions, 20 deletions
diff --git a/arch/xtensa/include/asm/sysmem.h b/arch/xtensa/include/asm/sysmem.h
index c015c5c8e3f7..552cdfd8590e 100644
--- a/arch/xtensa/include/asm/sysmem.h
+++ b/arch/xtensa/include/asm/sysmem.h
@@ -11,27 +11,8 @@
#ifndef _XTENSA_SYSMEM_H
#define _XTENSA_SYSMEM_H
-#define SYSMEM_BANKS_MAX 31
+#include <linux/memblock.h>
-struct meminfo {
- unsigned long start;
- unsigned long end;
-};
-
-/*
- * Bank array is sorted by .start.
- * Banks don't overlap and there's at least one page gap
- * between adjacent bank entries.
- */
-struct sysmem_info {
- int nr_banks;
- struct meminfo bank[SYSMEM_BANKS_MAX];
-};
-
-extern struct sysmem_info sysmem;
-
-int add_sysmem_bank(unsigned long start, unsigned long end);
-int mem_reserve(unsigned long, unsigned long, int);
void bootmem_init(void);
void zones_init(void);
OpenPOWER on IntegriCloud