aboutsummaryrefslogtreecommitdiff
path: root/kernel/configs.c
diff options
context:
space:
mode:
authorAlexander Shishkin2019-08-21 15:47:24 +0300
committerIngo Molnar2019-08-26 12:00:13 +0200
commit539f7c26b41d4ed7d88dd9756de3966ae7ca07b4 (patch)
tree6595ea87f5ddda34da06f0e5a2b7cde445248c22 /kernel/configs.c
parentfffec50f541ace292383c0cbe9a2a97d16d201c6 (diff)
perf/x86/intel/pt: Use pointer arithmetics instead in ToPA entry calculation
Currently, pt_buffer_reset_offsets() calculates the current ToPA entry by casting pointers to addresses and performing ungainly subtractions and divisions instead of a simpler pointer arithmetic, which would be perfectly applicable in that case. Fix that. Signed-off-by: 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 <a.p.zijlstra@chello.nl> 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> Link: http://lkml.kernel.org/r/20190821124727.73310-4-alexander.shishkin@linux.intel.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/configs.c')
0 files changed, 0 insertions, 0 deletions