diff options
Diffstat (limited to 'arch/blackfin/mach-common/smp.c')
-rw-r--r-- | arch/blackfin/mach-common/smp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/blackfin/mach-common/smp.c b/arch/blackfin/mach-common/smp.c index efc47ffd066d..7803f22d2ca7 100644 --- a/arch/blackfin/mach-common/smp.c +++ b/arch/blackfin/mach-common/smp.c | |||
@@ -474,24 +474,26 @@ void smp_icache_flush_range_others(unsigned long start, unsigned long end) | |||
474 | EXPORT_SYMBOL_GPL(smp_icache_flush_range_others); | 474 | EXPORT_SYMBOL_GPL(smp_icache_flush_range_others); |
475 | 475 | ||
476 | #ifdef __ARCH_SYNC_CORE_ICACHE | 476 | #ifdef __ARCH_SYNC_CORE_ICACHE |
477 | unsigned long icache_invld_count[NR_CPUS]; | ||
477 | void resync_core_icache(void) | 478 | void resync_core_icache(void) |
478 | { | 479 | { |
479 | unsigned int cpu = get_cpu(); | 480 | unsigned int cpu = get_cpu(); |
480 | blackfin_invalidate_entire_icache(); | 481 | blackfin_invalidate_entire_icache(); |
481 | ++per_cpu(cpu_data, cpu).icache_invld_count; | 482 | icache_invld_count[cpu]++; |
482 | put_cpu(); | 483 | put_cpu(); |
483 | } | 484 | } |
484 | EXPORT_SYMBOL(resync_core_icache); | 485 | EXPORT_SYMBOL(resync_core_icache); |
485 | #endif | 486 | #endif |
486 | 487 | ||
487 | #ifdef __ARCH_SYNC_CORE_DCACHE | 488 | #ifdef __ARCH_SYNC_CORE_DCACHE |
489 | unsigned long dcache_invld_count[NR_CPUS]; | ||
488 | unsigned long barrier_mask __attribute__ ((__section__(".l2.bss"))); | 490 | unsigned long barrier_mask __attribute__ ((__section__(".l2.bss"))); |
489 | 491 | ||
490 | void resync_core_dcache(void) | 492 | void resync_core_dcache(void) |
491 | { | 493 | { |
492 | unsigned int cpu = get_cpu(); | 494 | unsigned int cpu = get_cpu(); |
493 | blackfin_invalidate_entire_dcache(); | 495 | blackfin_invalidate_entire_dcache(); |
494 | ++per_cpu(cpu_data, cpu).dcache_invld_count; | 496 | dcache_invld_count[cpu]++; |
495 | put_cpu(); | 497 | put_cpu(); |
496 | } | 498 | } |
497 | EXPORT_SYMBOL(resync_core_dcache); | 499 | EXPORT_SYMBOL(resync_core_dcache); |