Title: [6883] branches/2009R1/arch/blackfin/include/asm/cacheflush.h: Bug[#5287] Remove 0x1000 as Mike prefered.
Revision
6883
Author
sonicz
Date
2009-06-30 21:42:51 -0500 (Tue, 30 Jun 2009)

Log Message

Bug[#5287] Remove 0x1000 as Mike prefered.

Modified Paths

Diff

Modified: branches/2009R1/arch/blackfin/include/asm/cacheflush.h (6882 => 6883)


--- branches/2009R1/arch/blackfin/include/asm/cacheflush.h	2009-07-01 02:41:03 UTC (rev 6882)
+++ branches/2009R1/arch/blackfin/include/asm/cacheflush.h	2009-07-01 02:42:51 UTC (rev 6883)
@@ -54,8 +54,10 @@
 
 static inline void flush_icache_range(unsigned start, unsigned end)
 {
+	if (start >= end)
+		return;
 #if defined(CONFIG_BFIN_WB)
-	if (start >= 0x1000 && end <= physical_mem_end)
+	if (end <= physical_mem_end)
 		blackfin_dcache_flush_range(start, end);
 #endif
 
@@ -75,7 +77,7 @@
 	SSYNC();
 
 #if defined(CONFIG_BFIN_ICACHE)
-	if ((start >= 0x1000 && end <= physical_mem_end) || (L2_LENGTH
+	if (end <= physical_mem_end || (L2_LENGTH
 		&& start >= L2_START && end <= L2_START + L2_LENGTH)) {
 		blackfin_icache_flush_range(start, end);
 		flush_icache_range_others(start, end);
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to