projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b41fc4f
)
powerpc32: Limit memory to lowmem if !CONFIG_HIGHMEM.
author
Paul Mackerras
<paulus@samba.org>
Wed, 26 Oct 2005 11:54:21 +0000
(21:54 +1000)
committer
Paul Mackerras
<paulus@samba.org>
Wed, 26 Oct 2005 11:54:21 +0000
(21:54 +1000)
This trims off the extra unusable memory from the lmb structure,
so we don't try to use it.
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/mm/init_32.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/powerpc/mm/init_32.c
b/arch/powerpc/mm/init_32.c
index aa6a5440cec1c3c4138e101750f6072a4d18837c..8dd1f7d0e23c672a8be8b40cf8ca32811c69011b 100644
(file)
--- a/
arch/powerpc/mm/init_32.c
+++ b/
arch/powerpc/mm/init_32.c
@@
-154,10
+154,13
@@
void __init MMU_init(void)
* in the fixed entries */
adjust_total_lowmem();
#endif /* CONFIG_FSL_BOOKE */
+
if (total_lowmem > __max_low_memory) {
total_lowmem = __max_low_memory;
#ifndef CONFIG_HIGHMEM
total_memory = total_lowmem;
+ lmb_enforce_memory_limit(total_lowmem);
+ lmb_analyze();
#endif /* CONFIG_HIGHMEM */
}