Skip to content

Commit

Permalink
perf/x86/intel: Fix rdlbr_to() MSR reading typo
Browse files Browse the repository at this point in the history
It helps to actually read the right MSR..

Signed-off-by: Peter 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: d4cf194 ("perf/x86/intel: Add {rd,wr}lbr_{to,from} wrappers")
Signed-off-by: Ingo Molnar <mingo@kernel.org>
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Jul 7, 2016
1 parent 3ebe3bd commit aefbc4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/events/intel/lbr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit aefbc4d

Please sign in to comment.