diff options
author | Stephane Eranian <eranian@google.com> | 2013-11-12 16:58:51 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-11-27 14:31:23 (GMT) |
commit | 65661f96d3b32f4b28fef26d21be81d7e173b965 (patch) | |
tree | 14bf97737aeb38199bacef7b0f11e1ddfe0b44d8 /tools | |
parent | 4788e5b4b2338f85fa42a712a182d8afd65d7c58 (diff) | |
download | linux-65661f96d3b32f4b28fef26d21be81d7e173b965.tar.xz |
perf/x86: Add RAPL hrtimer support
The RAPL PMU counters do not interrupt on overflow.
Therefore, the kernel needs to poll the counters
to avoid missing an overflow. This patch adds
the hrtimer code to do this.
The timer interval is calculated at boot time
based on the power unit used by the HW.
There is one hrtimer per-cpu to handle the case
of multiple simultaneous use across cores on
the same package + hotplug CPU.
Thanks to Maria Dimakopoulou for her contributions
to this patch especially on the math aspects.
Signed-off-by: Stephane Eranian <eranian@google.com>
Reviewed-by: Maria Dimakopoulou <maria.n.dimakopoulou@gmail.com>
Reviewed-by: Andi Kleen <ak@linux.intel.com>
[ Applied 32-bit build fix. ]
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: acme@redhat.com
Cc: jolsa@redhat.com
Cc: zheng.z.yan@intel.com
Cc: bp@alien8.de
Cc: maria.n.dimakopoulou@gmail.com
Link: http://lkml.kernel.org/r/1384275531-10892-5-git-send-email-eranian@google.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions