diff options
author | Paul Mundt <lethal@linux-sh.org> | 2010-03-02 23:16:31 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-03-02 23:16:31 -0500 |
commit | 09e1172317d1038918c5a139ba31155610f802b5 (patch) | |
tree | d8aa26ccf5163879f1fd8fcfb8235ccf8914b5ef /arch/sh/mm | |
parent | a1042aa248e4ea7f39d5ce13f080cbf3b6c42618 (diff) |
sh: establish PMB mappings for NUMA nodes.
In the case of NUMA emulation when in range PPNs are being used for
secondary nodes, we need to make sure that the PMB has a mapping for it
before setting up the pgdat. This prevents the MMU from resetting.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/mm')
-rw-r--r-- | arch/sh/mm/numa.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/sh/mm/numa.c b/arch/sh/mm/numa.c index 422e92721878..961b34085e3b 100644 --- a/arch/sh/mm/numa.c +++ b/arch/sh/mm/numa.c | |||
@@ -74,6 +74,9 @@ void __init setup_bootmem_node(int nid, unsigned long start, unsigned long end) | |||
74 | start_pfn = start >> PAGE_SHIFT; | 74 | start_pfn = start >> PAGE_SHIFT; |
75 | end_pfn = end >> PAGE_SHIFT; | 75 | end_pfn = end >> PAGE_SHIFT; |
76 | 76 | ||
77 | pmb_bolt_mapping((unsigned long)__va(start), start, end - start, | ||
78 | PAGE_KERNEL); | ||
79 | |||
77 | lmb_add(start, end - start); | 80 | lmb_add(start, end - start); |
78 | 81 | ||
79 | __add_active_range(nid, start_pfn, end_pfn); | 82 | __add_active_range(nid, start_pfn, end_pfn); |