Commit e7c1f0ab authored by Greg Ungerer's avatar Greg Ungerer Committed by Linus Torvalds

[PATCH] m68knommu cacheflush.h cleanup

This patch overhauls the cache support routines for the m68knommu
architecture. It removes depricated functions, and fixes those required
to operate as per Documentation/cachetlb.txt.
parent a666e6c3
...@@ -4,14 +4,19 @@ ...@@ -4,14 +4,19 @@
/* /*
* (C) Copyright 2000-2002, Greg Ungerer <gerg@snapgear.com> * (C) Copyright 2000-2002, Greg Ungerer <gerg@snapgear.com>
*/ */
#include <linux/mm.h>
#include <asm/io.h>
/*
* Cache handling functions
*/
#define flush_cache_all() __flush_cache_all() #define flush_cache_all() __flush_cache_all()
#define flush_cache_mm(mm) do { } while (0)
#define flush_cache_range(vma, start, end) do { } while (0)
#define flush_cache_page(vma, vmaddr) do { } while (0)
#define flush_page_to_ram(page) do { } while (0)
#define flush_dcache_range(start,len) do { } while (0)
#define flush_dcache_page(page) do { } while (0)
#define flush_icache_range(start,len) __flush_cache_all()
#define flush_icache_page(vma,pg) do { } while (0)
#define flush_icache_user_range(vma,pg,adr,len) do { } while (0)
extern inline void __flush_cache_all(void) extern inline void __flush_cache_all(void)
{ {
...@@ -58,25 +63,4 @@ extern inline void __flush_cache_all(void) ...@@ -58,25 +63,4 @@ extern inline void __flush_cache_all(void)
#endif /* CONFIG_M5249 */ #endif /* CONFIG_M5249 */
} }
/*
* FIXME: we could do better than an entire flush in most cases.
* But this will always work :-)
*/
#define flush_cache_all() __flush_cache_all()
#define flush_cache_mm(mm) __flush_cache_all()
#define flush_cache_range(vma,a,b) __flush_cache_all()
#define flush_cache_page(vma,p) __flush_cache_all()
#define flush_page_to_ram(page) __flush_cache_all()
#define flush_dcache_page(page) __flush_cache_all()
#define flush_icache() __flush_cache_all()
#define flush_icache_page(page) __flush_cache_all()
#define flush_icache_range(start,len) __flush_cache_all()
#define cache_push_v(vaddr,len) __flush_cache_all()
#define cache_push(paddr,len) __flush_cache_all()
#define cache_clear(paddr,len) __flush_cache_all()
#define flush_dcache_range(a,b)
#define flush_icache_user_range(vma,page,addr,len) __flush_cache_all()
#endif /* _M68KNOMMU_CACHEFLUSH_H */ #endif /* _M68KNOMMU_CACHEFLUSH_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment