aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Zijlstra <[email protected]>2016-06-30 11:49:08 +0200
committerIngo Molnar <[email protected]>2016-07-07 09:03:28 +0200
commitaefbc4d04c7b09cb6775a32cea7986c62e489ee2 (patch)
treefa412861addb3ac3a25d1e7aa7f37888ba17a61d
parent3ebe3bd8fbd51b5e04e93c7f3fb90bd096a86344 (diff)
perf/x86/intel: Fix rdlbr_to() MSR reading typo
It helps to actually read the right MSR.. Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Vince Weaver <[email protected]> Cc: [email protected] Fixes: d4cf1949f968 ("perf/x86/intel: Add {rd,wr}lbr_{to,from} wrappers") Signed-off-by: Ingo Molnar <[email protected]>
-rw-r--r--arch/x86/events/intel/lbr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/events/intel/lbr.c b/arch/x86/events/intel/lbr.c
index cc4555a9e876..707d358e0dff 100644
--- a/arch/x86/events/intel/lbr.c
+++ b/arch/x86/events/intel/lbr.c
@@ -323,7 +323,7 @@ static inline u64 rdlbr_to(unsigned int idx)
{
u64 val;
- rdmsrl(x86_pmu.lbr_from + idx, val);
+ rdmsrl(x86_pmu.lbr_to + idx, val);
return val;
}