diff options
author | David S. Miller <davem@davemloft.net> | 2010-01-23 03:31:06 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-23 03:31:06 -0500 |
commit | 51c24aaacaea90c8e87f1dec75a2ac7622b593f8 (patch) | |
tree | 9f54936c87764bef75e97395cb56b7d1e0df24c6 /arch/sh/mm | |
parent | 4276e47e2d1c85a2477caf0d22b91c4f2377fba8 (diff) | |
parent | 6be325719b3e54624397e413efd4b33a997e55a3 (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Diffstat (limited to 'arch/sh/mm')
-rw-r--r-- | arch/sh/mm/Kconfig | 7 | ||||
-rw-r--r-- | arch/sh/mm/cache.c | 8 |
2 files changed, 5 insertions, 10 deletions
diff --git a/arch/sh/mm/Kconfig b/arch/sh/mm/Kconfig index 0e7ba8e891cf..986a71b88ca3 100644 --- a/arch/sh/mm/Kconfig +++ b/arch/sh/mm/Kconfig | |||
@@ -82,8 +82,7 @@ config 32BIT | |||
82 | 82 | ||
83 | config PMB_ENABLE | 83 | config PMB_ENABLE |
84 | bool "Support 32-bit physical addressing through PMB" | 84 | bool "Support 32-bit physical addressing through PMB" |
85 | depends on MMU && EXPERIMENTAL && CPU_SH4A | 85 | depends on MMU && EXPERIMENTAL && CPU_SH4A && !CPU_SH4AL_DSP |
86 | default y | ||
87 | help | 86 | help |
88 | If you say Y here, physical addressing will be extended to | 87 | If you say Y here, physical addressing will be extended to |
89 | 32-bits through the SH-4A PMB. If this is not set, legacy | 88 | 32-bits through the SH-4A PMB. If this is not set, legacy |
@@ -96,7 +95,7 @@ choice | |||
96 | 95 | ||
97 | config PMB | 96 | config PMB |
98 | bool "PMB" | 97 | bool "PMB" |
99 | depends on MMU && EXPERIMENTAL && CPU_SH4A | 98 | depends on MMU && EXPERIMENTAL && CPU_SH4A && !CPU_SH4AL_DSP |
100 | help | 99 | help |
101 | If you say Y here, physical addressing will be extended to | 100 | If you say Y here, physical addressing will be extended to |
102 | 32-bits through the SH-4A PMB. If this is not set, legacy | 101 | 32-bits through the SH-4A PMB. If this is not set, legacy |
@@ -104,7 +103,7 @@ config PMB | |||
104 | 103 | ||
105 | config PMB_FIXED | 104 | config PMB_FIXED |
106 | bool "fixed PMB" | 105 | bool "fixed PMB" |
107 | depends on MMU && EXPERIMENTAL && CPU_SH4A | 106 | depends on MMU && EXPERIMENTAL && CPU_SH4A && !CPU_SH4AL_DSP |
108 | select 32BIT | 107 | select 32BIT |
109 | help | 108 | help |
110 | If this option is enabled, fixed PMB mappings are inherited | 109 | If this option is enabled, fixed PMB mappings are inherited |
diff --git a/arch/sh/mm/cache.c b/arch/sh/mm/cache.c index e9415d3ea94a..b8607fa7ae12 100644 --- a/arch/sh/mm/cache.c +++ b/arch/sh/mm/cache.c | |||
@@ -133,12 +133,8 @@ void __update_cache(struct vm_area_struct *vma, | |||
133 | page = pfn_to_page(pfn); | 133 | page = pfn_to_page(pfn); |
134 | if (pfn_valid(pfn)) { | 134 | if (pfn_valid(pfn)) { |
135 | int dirty = test_and_clear_bit(PG_dcache_dirty, &page->flags); | 135 | int dirty = test_and_clear_bit(PG_dcache_dirty, &page->flags); |
136 | if (dirty) { | 136 | if (dirty) |
137 | unsigned long addr = (unsigned long)page_address(page); | 137 | __flush_purge_region(page_address(page), PAGE_SIZE); |
138 | |||
139 | if (pages_do_alias(addr, address & PAGE_MASK)) | ||
140 | __flush_purge_region((void *)addr, PAGE_SIZE); | ||
141 | } | ||
142 | } | 138 | } |
143 | } | 139 | } |
144 | 140 | ||