projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
sh: fix size calculation for NUMA node 0
[linux-2.6-block.git]
/
arch
/
sh
/
mm
/
numa.c
diff --git
a/arch/sh/mm/numa.c
b/arch/sh/mm/numa.c
index 6c524446c0f6f49952e3757bde91b126c1ac3af8..b44e83526673d5dccc4655c60a18c99e817362e4 100644
(file)
--- a/
arch/sh/mm/numa.c
+++ b/
arch/sh/mm/numa.c
@@
-28,7
+28,7
@@
void __init setup_memory(void)
{
unsigned long free_pfn = PFN_UP(__pa(_end));
u64 base = min_low_pfn << PAGE_SHIFT;
- u64 size = (max_low_pfn << PAGE_SHIFT) -
min_low_pfn
;
+ u64 size = (max_low_pfn << PAGE_SHIFT) -
base
;
lmb_add(base, size);