summaryrefslogtreecommitdiffstats
path: root/arch/xtensa/include/asm
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2014-03-23 03:34:44 +0400
committerMax Filippov <jcmvbkbc@gmail.com>2014-04-02 01:35:52 +0400
commit9d4b52df4b1242e6ba9a00db5f8d62083a56709f (patch)
treed07dffe36aaeacda5b30472eaafb265100882861 /arch/xtensa/include/asm
parent9ba067f93f1eec0d241f002812806b873dd4f802 (diff)
downloadop-kernel-dev-9d4b52df4b1242e6ba9a00db5f8d62083a56709f.zip
op-kernel-dev-9d4b52df4b1242e6ba9a00db5f8d62083a56709f.tar.gz
xtensa: keep sysmem banks ordered in add_sysmem_bank
Rewrite add_sysmem_bank so that it keeps bank order and merges adjacent/overlapping banks. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/include/asm')
-rw-r--r--arch/xtensa/include/asm/sysmem.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/xtensa/include/asm/sysmem.h b/arch/xtensa/include/asm/sysmem.h
index fe7ad75..c015c5c 100644
--- a/arch/xtensa/include/asm/sysmem.h
+++ b/arch/xtensa/include/asm/sysmem.h
@@ -18,6 +18,11 @@ struct meminfo {
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];
OpenPOWER on IntegriCloud