From dd5dd8cfd9d3e98b87d64e34f449fff2df30fe7f Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Wed, 8 Sep 2010 17:05:49 +0000 Subject: Rename cache coherency functions. The old cache coherency function names where wrong and misleading. The new names are (purposely different from vendor manuals) * commit_* (write-back only) * discard_* (removing lines from cache only) * commit_discard_* (write-back and removing lines from cache) It's suspected the old names have led to wrong uses. The old names still exist (as aliases) so every call via the old names need to be double checked and changed to the new name. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28045 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/system.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'firmware/export') diff --git a/firmware/export/system.h b/firmware/export/system.h index ce6277a..ed10c84 100644 --- a/firmware/export/system.h +++ b/firmware/export/system.h @@ -282,16 +282,28 @@ static inline uint32_t swap_odd_even32(uint32_t value) /* Just define these as empty if not declared */ #ifdef HAVE_CPUCACHE_INVALIDATE +void cpucache_commit_discard(void); +/* deprecated alias */ void cpucache_invalidate(void); #else +static inline void cpucache_commit_discard(void) +{ +} +/* deprecated alias */ static inline void cpucache_invalidate(void) { } #endif #ifdef HAVE_CPUCACHE_FLUSH +void cpucache_commit(void); +/* deprecated alias */ void cpucache_flush(void); #else +static inline void cpucache_commit(void) +{ +} +/* deprecated alias */ static inline void cpucache_flush(void) { } -- cgit v1.1