aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDeng-Cheng Zhu <dengcheng.zhu@imgtec.com>2014-02-10 12:48:52 -0500
committerRalf Baechle <ralf@linux-mips.org>2014-03-31 12:17:12 -0400
commit6b0b84295c4a82c89de64b80923e9d975e9249ed (patch)
treeef22454b20797f00d8dfcd40713c07db43949270
parent823cf3cdd7a8612caf9542ef36228e5639e33738 (diff)
MIPS: perf: Rename 74K event/cache maps in preparation for Aptiv support
74K/proAptiv share the same event/cache maps. So it's better to change the names of the existing mipsxx74Kcore_[event|cache]_map. Signed-off-by: Deng-Cheng Zhu <dengcheng.zhu@imgtec.com> Reviewed-by: Markos Chandras <Markos.Chandras@imgtec.com> Reviewed-by: James Hogan <james.hogan@imgtec.com> Cc: linux-mips@linux-mips.org Cc: Steven.Hill@imgtec.com Patchwork: https://patchwork.linux-mips.org/patch/6526/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--arch/mips/kernel/perf_event_mipsxx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/mips/kernel/perf_event_mipsxx.c b/arch/mips/kernel/perf_event_mipsxx.c
index 17594b81a5d2..d5294cc7a6ac 100644
--- a/arch/mips/kernel/perf_event_mipsxx.c
+++ b/arch/mips/kernel/perf_event_mipsxx.c
@@ -815,7 +815,7 @@ static const struct mips_perf_event mipsxxcore_event_map
815}; 815};
816 816
817/* 74K core has different branch event code. */ 817/* 74K core has different branch event code. */
818static const struct mips_perf_event mipsxx74Kcore_event_map 818static const struct mips_perf_event mipsxxcore_event_map2
819 [PERF_COUNT_HW_MAX] = { 819 [PERF_COUNT_HW_MAX] = {
820 [PERF_COUNT_HW_CPU_CYCLES] = { 0x00, CNTR_EVEN | CNTR_ODD, P }, 820 [PERF_COUNT_HW_CPU_CYCLES] = { 0x00, CNTR_EVEN | CNTR_ODD, P },
821 [PERF_COUNT_HW_INSTRUCTIONS] = { 0x01, CNTR_EVEN | CNTR_ODD, T }, 821 [PERF_COUNT_HW_INSTRUCTIONS] = { 0x01, CNTR_EVEN | CNTR_ODD, T },
@@ -931,7 +931,7 @@ static const struct mips_perf_event mipsxxcore_cache_map
931}; 931};
932 932
933/* 74K core has completely different cache event map. */ 933/* 74K core has completely different cache event map. */
934static const struct mips_perf_event mipsxx74Kcore_cache_map 934static const struct mips_perf_event mipsxxcore_cache_map2
935 [PERF_COUNT_HW_CACHE_MAX] 935 [PERF_COUNT_HW_CACHE_MAX]
936 [PERF_COUNT_HW_CACHE_OP_MAX] 936 [PERF_COUNT_HW_CACHE_OP_MAX]
937 [PERF_COUNT_HW_CACHE_RESULT_MAX] = { 937 [PERF_COUNT_HW_CACHE_RESULT_MAX] = {
@@ -1577,8 +1577,8 @@ init_hw_perf_events(void)
1577 break; 1577 break;
1578 case CPU_74K: 1578 case CPU_74K:
1579 mipspmu.name = "mips/74K"; 1579 mipspmu.name = "mips/74K";
1580 mipspmu.general_event_map = &mipsxx74Kcore_event_map; 1580 mipspmu.general_event_map = &mipsxxcore_event_map2;
1581 mipspmu.cache_event_map = &mipsxx74Kcore_cache_map; 1581 mipspmu.cache_event_map = &mipsxxcore_cache_map2;
1582 break; 1582 break;
1583 case CPU_1004K: 1583 case CPU_1004K:
1584 mipspmu.name = "mips/1004K"; 1584 mipspmu.name = "mips/1004K";