Commit aefbc4d0 authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Ingo Molnar

perf/x86/intel: Fix rdlbr_to() MSR reading typo

It helps to actually read the right MSR..
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Cc: linux-kernel@vger.kernel.org
Fixes: d4cf1949 ("perf/x86/intel: Add {rd,wr}lbr_{to,from} wrappers")
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 3ebe3bd8
...@@ -323,7 +323,7 @@ static inline u64 rdlbr_to(unsigned int idx) ...@@ -323,7 +323,7 @@ static inline u64 rdlbr_to(unsigned int idx)
{ {
u64 val; u64 val;
rdmsrl(x86_pmu.lbr_from + idx, val); rdmsrl(x86_pmu.lbr_to + idx, val);
return val; return val;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment