From: Mike Frysinger Date: Thu, 16 Oct 2008 15:25:34 +0000 (+0800) Subject: Blackfin arch: use the new bfin_addr_dcachable() function X-Git-Tag: v2.6.28-rc1~282^2~4 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a92946bc6abad6494ac95ea1a8b7c224b15fa1f7;p=linux-2.6-omap-h63xx.git Blackfin arch: use the new bfin_addr_dcachable() function Signed-off-by: Mike Frysinger Signed-off-by: Bryan Wu --- diff --git a/arch/blackfin/kernel/cplb-mpu/cplbmgr.c b/arch/blackfin/kernel/cplb-mpu/cplbmgr.c index 5094677fd09..baa52e261f0 100644 --- a/arch/blackfin/kernel/cplb-mpu/cplbmgr.c +++ b/arch/blackfin/kernel/cplb-mpu/cplbmgr.c @@ -21,6 +21,7 @@ #include #include +#include #include #include @@ -144,9 +145,7 @@ static noinline int dcplb_miss(void) d_data = CPLB_SUPV_WR | CPLB_VALID | CPLB_DIRTY | PAGE_SIZE_4KB; #ifdef CONFIG_BFIN_DCACHE - if (addr < _ramend - DMA_UNCACHED_REGION || - (reserved_mem_dcache_on && addr >= _ramend && - addr < physical_mem_end)) { + if (bfin_addr_dcachable(addr)) { d_data |= CPLB_L1_CHBL | ANOMALY_05000158_WORKAROUND; #ifdef CONFIG_BFIN_WT d_data |= CPLB_L1_AOW | CPLB_WT;