[patch 21/39] x86: perf: Use hrtimer_start()

From: Thomas Gleixner
Date: Tue Apr 14 2015 - 17:10:04 EST


hrtimer_start() does not longer defer already expired timers to the
softirq. Get rid of the __hrtimer_start_range_ns() invocation.

Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Cc: x86@xxxxxxxxxx
---
arch/x86/kernel/cpu/perf_event_intel_rapl.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)

Index: tip/arch/x86/kernel/cpu/perf_event_intel_rapl.c
===================================================================
--- tip.orig/arch/x86/kernel/cpu/perf_event_intel_rapl.c
+++ tip/arch/x86/kernel/cpu/perf_event_intel_rapl.c
@@ -182,9 +182,8 @@ again:

static void rapl_start_hrtimer(struct rapl_pmu *pmu)
{
- __hrtimer_start_range_ns(&pmu->hrtimer,
- pmu->timer_interval, 0,
- HRTIMER_MODE_REL_PINNED, 0);
+ hrtimer_start(&pmu->hrtimer, pmu->timer_interval,
+ HRTIMER_MODE_REL_PINNED);
}

static void rapl_stop_hrtimer(struct rapl_pmu *pmu)


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/