diff options
author | Akira Takeuchi <takeuchi.akr@jp.panasonic.com> | 2010-10-27 12:28:45 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2010-10-27 12:28:45 -0400 |
commit | 0bd3eb6ca772775da6125ea5b044d4257473d18d (patch) | |
tree | a5aa631714910e2d9a698cd9334bbe1b49e33e2f /arch/mn10300/proc-mn103e010 | |
parent | 9b287bf9924cedaf1accd7293db3627bef7c46e3 (diff) |
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>
Diffstat (limited to 'arch/mn10300/proc-mn103e010')
-rw-r--r-- | arch/mn10300/proc-mn103e010/include/proc/cache.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/mn10300/proc-mn103e010/include/proc/cache.h b/arch/mn10300/proc-mn103e010/include/proc/cache.h index bdc1f9a59b4c..c1528004163c 100644 --- a/arch/mn10300/proc-mn103e010/include/proc/cache.h +++ b/arch/mn10300/proc-mn103e010/include/proc/cache.h | |||
@@ -30,4 +30,13 @@ | |||
30 | */ | 30 | */ |
31 | #define MN10300_DCACHE_INV_RANGE_INTR_LOG2_INTERVAL 4 | 31 | #define MN10300_DCACHE_INV_RANGE_INTR_LOG2_INTERVAL 4 |
32 | 32 | ||
33 | /* | ||
34 | * The size of range at which it becomes more economical to just flush the | ||
35 | * whole cache rather than trying to flush the specified range. | ||
36 | */ | ||
37 | #define MN10300_DCACHE_FLUSH_BORDER \ | ||
38 | +(L1_CACHE_NWAYS * L1_CACHE_NENTRIES * L1_CACHE_BYTES) | ||
39 | #define MN10300_DCACHE_FLUSH_INV_BORDER \ | ||
40 | +(L1_CACHE_NWAYS * L1_CACHE_NENTRIES * L1_CACHE_BYTES) | ||
41 | |||
33 | #endif /* _ASM_PROC_CACHE_H */ | 42 | #endif /* _ASM_PROC_CACHE_H */ |