MN10300: SMP: Differentiate local cache flushing
Differentiate local cache flushing from global cache flushing so that they can be done differently on SMP systems. Rename the cache functions from: mn10300_[id]cache_*() to: mn10300_[id]_localcache_*() and on a UP system, assign the global labels to the local labels. Signed-off-by: Akira Takeuchi <takeuchi.akr@jp.panasonic.com> Signed-off-by: Kiyoshi Owada <owada.kiyoshi@jp.panasonic.com> Signed-off-by: David Howells <dhowells@redhat.com>
This commit is contained in:

committed by
David Howells

parent
9b287bf992
commit
0bd3eb6ca7
@@ -30,4 +30,13 @@
|
||||
*/
|
||||
#define MN10300_DCACHE_INV_RANGE_INTR_LOG2_INTERVAL 4
|
||||
|
||||
/*
|
||||
* The size of range at which it becomes more economical to just flush the
|
||||
* whole cache rather than trying to flush the specified range.
|
||||
*/
|
||||
#define MN10300_DCACHE_FLUSH_BORDER \
|
||||
+(L1_CACHE_NWAYS * L1_CACHE_NENTRIES * L1_CACHE_BYTES)
|
||||
#define MN10300_DCACHE_FLUSH_INV_BORDER \
|
||||
+(L1_CACHE_NWAYS * L1_CACHE_NENTRIES * L1_CACHE_BYTES)
|
||||
|
||||
#endif /* _ASM_PROC_CACHE_H */
|
||||
|
Reference in New Issue
Block a user