MIPS: pgtable.h: Implement the pgprot_writecombine function for MIPS
authorMarkos Chandras <markos.chandras@imgtec.com>
Fri, 18 Jul 2014 09:51:33 +0000 (10:51 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 22 Sep 2014 11:35:53 +0000 (13:35 +0200)
commit4b050ba7a66c3ff26cc329ea4db0e9fb2d66a064
treefa1d1accffcd5bc39694d19e33a9cf82ffd47cc5
parent4f12b91d2da577d81c580da62373fd37b31e0da1
MIPS: pgtable.h: Implement the pgprot_writecombine function for MIPS

Previously, the pgprot_writecombine function was simply defined
as pgprot_uncached in include/asm-generic/pgtable.h. This is not
optimal for cores that can actually do write-combine memory writes
so define this function to take into account the core's cache coherency
attribute to achieve such behavior.

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/7403/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/pgtable.h