sh: Fix up dynamically created write-through PMB mappings.
authorPaul Mundt <lethal@linux-sh.org>
Wed, 17 Feb 2010 09:05:23 +0000 (18:05 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 17 Feb 2010 09:05:23 +0000 (18:05 +0900)
commit0065b96775f1eff167a2c3343a41582e8fab4c6c
tree21772c942c64488442c20695f135faec1738c6bb
parentd7813bc9e8e384f5a293b05c095c799d41af3668
sh: Fix up dynamically created write-through PMB mappings.

Write-through PMB mappings still require the cache bit to be set, even if
they're to be flagged with a different cache policy and bufferability
bit. To reduce some of the confusion surrounding the flag encoding we
centralize the cache mask based on the system cache policy while we're at
it.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/mm/pmb.c