diff options
| author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
|---|---|---|
| committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
| commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
| tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /arch/microblaze/kernel/cpu/cache.c | |
| parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
| parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) | |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'arch/microblaze/kernel/cpu/cache.c')
| -rw-r--r-- | arch/microblaze/kernel/cpu/cache.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/arch/microblaze/kernel/cpu/cache.c b/arch/microblaze/kernel/cpu/cache.c index 109876e8d643..4b7d8a3f4aef 100644 --- a/arch/microblaze/kernel/cpu/cache.c +++ b/arch/microblaze/kernel/cpu/cache.c | |||
| @@ -129,7 +129,7 @@ do { \ | |||
| 129 | * to use for simple wdc or wic. | 129 | * to use for simple wdc or wic. |
| 130 | * | 130 | * |
| 131 | * start address is cache aligned | 131 | * start address is cache aligned |
| 132 | * end address is not aligned, if end is aligned then I have to substract | 132 | * end address is not aligned, if end is aligned then I have to subtract |
| 133 | * cacheline length because I can't flush/invalidate the next cacheline. | 133 | * cacheline length because I can't flush/invalidate the next cacheline. |
| 134 | * If is not, I align it because I will flush/invalidate whole line. | 134 | * If is not, I align it because I will flush/invalidate whole line. |
| 135 | */ | 135 | */ |
| @@ -519,7 +519,7 @@ static void __flush_dcache_range_wb(unsigned long start, unsigned long end) | |||
| 519 | struct scache *mbc; | 519 | struct scache *mbc; |
| 520 | 520 | ||
| 521 | /* new wb cache model */ | 521 | /* new wb cache model */ |
| 522 | const struct scache wb_msr = { | 522 | static const struct scache wb_msr = { |
| 523 | .ie = __enable_icache_msr, | 523 | .ie = __enable_icache_msr, |
| 524 | .id = __disable_icache_msr, | 524 | .id = __disable_icache_msr, |
| 525 | .ifl = __flush_icache_all_noirq, | 525 | .ifl = __flush_icache_all_noirq, |
| @@ -535,7 +535,7 @@ const struct scache wb_msr = { | |||
| 535 | }; | 535 | }; |
| 536 | 536 | ||
| 537 | /* There is only difference in ie, id, de, dd functions */ | 537 | /* There is only difference in ie, id, de, dd functions */ |
| 538 | const struct scache wb_nomsr = { | 538 | static const struct scache wb_nomsr = { |
| 539 | .ie = __enable_icache_nomsr, | 539 | .ie = __enable_icache_nomsr, |
| 540 | .id = __disable_icache_nomsr, | 540 | .id = __disable_icache_nomsr, |
| 541 | .ifl = __flush_icache_all_noirq, | 541 | .ifl = __flush_icache_all_noirq, |
| @@ -551,7 +551,7 @@ const struct scache wb_nomsr = { | |||
| 551 | }; | 551 | }; |
| 552 | 552 | ||
| 553 | /* Old wt cache model with disabling irq and turn off cache */ | 553 | /* Old wt cache model with disabling irq and turn off cache */ |
| 554 | const struct scache wt_msr = { | 554 | static const struct scache wt_msr = { |
| 555 | .ie = __enable_icache_msr, | 555 | .ie = __enable_icache_msr, |
| 556 | .id = __disable_icache_msr, | 556 | .id = __disable_icache_msr, |
| 557 | .ifl = __flush_icache_all_msr_irq, | 557 | .ifl = __flush_icache_all_msr_irq, |
| @@ -566,7 +566,7 @@ const struct scache wt_msr = { | |||
| 566 | .dinr = __invalidate_dcache_range_msr_irq_wt, | 566 | .dinr = __invalidate_dcache_range_msr_irq_wt, |
| 567 | }; | 567 | }; |
| 568 | 568 | ||
| 569 | const struct scache wt_nomsr = { | 569 | static const struct scache wt_nomsr = { |
| 570 | .ie = __enable_icache_nomsr, | 570 | .ie = __enable_icache_nomsr, |
| 571 | .id = __disable_icache_nomsr, | 571 | .id = __disable_icache_nomsr, |
| 572 | .ifl = __flush_icache_all_nomsr_irq, | 572 | .ifl = __flush_icache_all_nomsr_irq, |
| @@ -582,7 +582,7 @@ const struct scache wt_nomsr = { | |||
| 582 | }; | 582 | }; |
| 583 | 583 | ||
| 584 | /* New wt cache model for newer Microblaze versions */ | 584 | /* New wt cache model for newer Microblaze versions */ |
| 585 | const struct scache wt_msr_noirq = { | 585 | static const struct scache wt_msr_noirq = { |
| 586 | .ie = __enable_icache_msr, | 586 | .ie = __enable_icache_msr, |
| 587 | .id = __disable_icache_msr, | 587 | .id = __disable_icache_msr, |
| 588 | .ifl = __flush_icache_all_noirq, | 588 | .ifl = __flush_icache_all_noirq, |
| @@ -597,7 +597,7 @@ const struct scache wt_msr_noirq = { | |||
| 597 | .dinr = __invalidate_dcache_range_nomsr_wt, | 597 | .dinr = __invalidate_dcache_range_nomsr_wt, |
| 598 | }; | 598 | }; |
| 599 | 599 | ||
| 600 | const struct scache wt_nomsr_noirq = { | 600 | static const struct scache wt_nomsr_noirq = { |
| 601 | .ie = __enable_icache_nomsr, | 601 | .ie = __enable_icache_nomsr, |
| 602 | .id = __disable_icache_nomsr, | 602 | .id = __disable_icache_nomsr, |
| 603 | .ifl = __flush_icache_all_noirq, | 603 | .ifl = __flush_icache_all_noirq, |
| @@ -624,7 +624,7 @@ void microblaze_cache_init(void) | |||
| 624 | if (cpuinfo.dcache_wb) { | 624 | if (cpuinfo.dcache_wb) { |
| 625 | INFO("wb_msr"); | 625 | INFO("wb_msr"); |
| 626 | mbc = (struct scache *)&wb_msr; | 626 | mbc = (struct scache *)&wb_msr; |
| 627 | if (cpuinfo.ver_code < CPUVER_7_20_D) { | 627 | if (cpuinfo.ver_code <= CPUVER_7_20_D) { |
| 628 | /* MS: problem with signal handling - hw bug */ | 628 | /* MS: problem with signal handling - hw bug */ |
| 629 | INFO("WB won't work properly"); | 629 | INFO("WB won't work properly"); |
| 630 | } | 630 | } |
| @@ -641,7 +641,7 @@ void microblaze_cache_init(void) | |||
| 641 | if (cpuinfo.dcache_wb) { | 641 | if (cpuinfo.dcache_wb) { |
| 642 | INFO("wb_nomsr"); | 642 | INFO("wb_nomsr"); |
| 643 | mbc = (struct scache *)&wb_nomsr; | 643 | mbc = (struct scache *)&wb_nomsr; |
| 644 | if (cpuinfo.ver_code < CPUVER_7_20_D) { | 644 | if (cpuinfo.ver_code <= CPUVER_7_20_D) { |
| 645 | /* MS: problem with signal handling - hw bug */ | 645 | /* MS: problem with signal handling - hw bug */ |
| 646 | INFO("WB won't work properly"); | 646 | INFO("WB won't work properly"); |
| 647 | } | 647 | } |
