aboutsummaryrefslogtreecommitdiff
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorStephane Eranian <[email protected]>2013-11-12 17:58:51 +0100
committerIngo Molnar <[email protected]>2013-11-27 15:31:23 +0100
commit65661f96d3b32f4b28fef26d21be81d7e173b965 (patch)
tree14bf97737aeb38199bacef7b0f11e1ddfe0b44d8 /lib/string_helpers.c
parent4788e5b4b2338f85fa42a712a182d8afd65d7c58 (diff)
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 <[email protected]> Reviewed-by: Maria Dimakopoulou <[email protected]> Reviewed-by: Andi Kleen <[email protected]> [ Applied 32-bit build fix. ] Signed-off-by: Peter Zijlstra <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions