perf/x86/intel: Remove division from the intel_pmu_drain_pebs_nhm() hot path
authorPeter Zijlstra <peterz@infradead.org>
Mon, 16 Sep 2013 07:23:02 +0000 (09:23 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 20 Sep 2013 04:53:44 +0000 (06:53 +0200)
commiteb8417aa703eff5ff43d0275f19b0a8e591d818d
treeaa6f24a7a4065dde34e0df8e82df47219d693d7d
parent7f2ee91f54fb56071f97bde1ef7ba7ba0d58dfe5
perf/x86/intel: Remove division from the intel_pmu_drain_pebs_nhm() hot path

Only do the division in case we have to print the result out in a warning.

Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/n/tip-43nl31erfbajwpfj254f6zji@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event_intel_ds.c