Commit 576b0704 authored by Thomas Gleixner's avatar Thomas Gleixner

x86: perf: uncore: Use hrtimer_start()

hrtimer_start() does not longer defer already expired timers to the
softirq. Get rid of the __hrtimer_start_range_ns() invocation.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Acked-by: default avatarPeter Zijlstra <peterz@infradead.org>
Cc: Preeti U Murthy <preeti@linux.vnet.ibm.com>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: x86@kernel.org
Link: http://lkml.kernel.org/r/20150414203502.360555157@linutronix.deSigned-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 514c2304
...@@ -233,9 +233,8 @@ static enum hrtimer_restart uncore_pmu_hrtimer(struct hrtimer *hrtimer) ...@@ -233,9 +233,8 @@ static enum hrtimer_restart uncore_pmu_hrtimer(struct hrtimer *hrtimer)
void uncore_pmu_start_hrtimer(struct intel_uncore_box *box) void uncore_pmu_start_hrtimer(struct intel_uncore_box *box)
{ {
__hrtimer_start_range_ns(&box->hrtimer, hrtimer_start(&box->hrtimer, ns_to_ktime(box->hrtimer_duration),
ns_to_ktime(box->hrtimer_duration), 0, HRTIMER_MODE_REL_PINNED);
HRTIMER_MODE_REL_PINNED, 0);
} }
void uncore_pmu_cancel_hrtimer(struct intel_uncore_box *box) void uncore_pmu_cancel_hrtimer(struct intel_uncore_box *box)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment