Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 04be80ef authored by Mike Frysinger's avatar Mike Frysinger Committed by Bryan Wu
Browse files

Blackfin arch: move bfin_addr_dcachable() and friends into the cacheflush header where it belongs

parent a92946bc
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -85,4 +85,21 @@ do { memcpy(dst, src, len); \
# define flush_dcache_page(page)			do { } while (0)
#endif

extern unsigned long reserved_mem_dcache_on;
extern unsigned long reserved_mem_icache_on;

static inline int bfin_addr_dcachable(unsigned long addr)
{
#ifdef CONFIG_BFIN_DCACHE
	if (addr < (_ramend - DMA_UNCACHED_REGION))
		return 1;
#endif

	if (reserved_mem_dcache_on &&
		addr >= _ramend && addr < physical_mem_end)
		return 1;

	return 0;
}

#endif				/* _BLACKFIN_ICACHEFLUSH_H */
+0 −17
Original line number Diff line number Diff line
@@ -87,23 +87,6 @@ extern u_long dpdt_swapcount_table[];

#endif /* CONFIG_MPU */

extern unsigned long reserved_mem_dcache_on;
extern unsigned long reserved_mem_icache_on;

extern void generate_cplb_tables(void);

static inline int bfin_addr_dcachable(unsigned long addr)
{
#ifdef CONFIG_BFIN_DCACHE
	if (addr < (_ramend - DMA_UNCACHED_REGION))
		return 1;
#endif

	if (reserved_mem_dcache_on &&
		addr >= _ramend && addr < physical_mem_end)
		return 1;

	return 0;
}

#endif
+1 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@
#include <linux/module.h>

#include <asm/blackfin.h>
#include <asm/cacheflush.h>
#include <asm/cplb.h>
#include <asm/cplbinit.h>