提交 514b6d0c 编写于 作者: A Arnaud Patard 提交者: Ralf Baechle

MIPS: Loongson: Fix phys_mem_access_prot() check

The check used to determine if uncached accelerated should be used or not
is wrong. The parenthesis are misplaced and making the test fail.
Signed-off-by: NArnaud Patard <apatard@mandriva.com>
To: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/1161/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 ff40ad72
...@@ -75,7 +75,7 @@ pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn, ...@@ -75,7 +75,7 @@ pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn,
unsigned long end = offset + size; unsigned long end = offset + size;
if (__uncached_access(file, offset)) { if (__uncached_access(file, offset)) {
if (((uca_start && offset) >= uca_start) && if (uca_start && (offset >= uca_start) &&
(end <= uca_end)) (end <= uca_end))
return __pgprot((pgprot_val(vma_prot) & return __pgprot((pgprot_val(vma_prot) &
~_CACHE_MASK) | ~_CACHE_MASK) |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册