Title: [7191] branches/2009R1/arch/blackfin/include/asm/cplb.h: bug[#5412] - As commented by Mike, setting CPLB should not depend on cache on or off.
- Revision
- 7191
- Author
- adamliyi
- Date
- 2009-08-13 21:35:36 -0400 (Thu, 13 Aug 2009)
Log Message
bug[#5412] - As commented by Mike, setting CPLB should not depend on cache on or off.
Modified Paths
Diff
Modified: branches/2009R1/arch/blackfin/include/asm/cplb.h (7190 => 7191)
--- branches/2009R1/arch/blackfin/include/asm/cplb.h 2009-08-13 23:13:37 UTC (rev 7190)
+++ branches/2009R1/arch/blackfin/include/asm/cplb.h 2009-08-14 01:35:36 UTC (rev 7191)
@@ -126,7 +126,6 @@
#ifndef __ASSEMBLY__
static inline void disable_dcplb(void)
{
-#ifdef CONFIG_BFIN_DCACHE
unsigned long ctrl;
ctrl = bfin_read_DMEM_CONTROL();
ctrl &= ~ENDCPLB;
@@ -134,12 +133,10 @@
CSYNC();
bfin_write_DMEM_CONTROL(ctrl);
SSYNC();
-#endif
}
static inline void enable_dcplb(void)
{
-#ifdef CONFIG_BFIN_DCACHE
unsigned long ctrl;
ctrl = bfin_read_DMEM_CONTROL();
ctrl |= ENDCPLB;
@@ -147,12 +144,10 @@
CSYNC();
bfin_write_DMEM_CONTROL(ctrl);
SSYNC();
-#endif
}
static inline void disable_icplb(void)
{
-#ifdef CONFIG_BFIN_ICACHE
unsigned long ctrl;
ctrl = bfin_read_IMEM_CONTROL();
ctrl &= ~ENICPLB;
@@ -160,12 +155,10 @@
CSYNC();
bfin_write_IMEM_CONTROL(ctrl);
SSYNC();
-#endif
}
static inline void enable_icplb(void)
{
-#ifdef CONFIG_BFIN_ICACHE
unsigned long ctrl;
ctrl = bfin_read_IMEM_CONTROL();
ctrl |= ENICPLB;
@@ -173,7 +166,6 @@
CSYNC();
bfin_write_IMEM_CONTROL(ctrl);
SSYNC();
-#endif
}
#endif /* __ASSEMBLY__ */
#endif /* _CPLB_H */
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits