Lines Matching refs:hrtimer
750 static enum hrtimer_restart perf_cpu_hrtimer_handler(struct hrtimer *hr) in perf_cpu_hrtimer_handler()
758 cpuctx = container_of(hr, struct perf_cpu_context, hrtimer); in perf_cpu_hrtimer_handler()
793 hrtimer_cancel(&cpuctx->hrtimer); in perf_cpu_hrtimer_cancel()
803 struct hrtimer *hr = &cpuctx->hrtimer; in __perf_cpu_hrtimer_init()
827 struct hrtimer *hr = &cpuctx->hrtimer; in perf_cpu_hrtimer_restart()
6855 static enum hrtimer_restart perf_swevent_hrtimer(struct hrtimer *hrtimer) in perf_swevent_hrtimer() argument
6863 event = container_of(hrtimer, struct perf_event, hw.hrtimer); in perf_swevent_hrtimer()
6880 hrtimer_forward_now(hrtimer, ns_to_ktime(period)); in perf_swevent_hrtimer()
6902 __hrtimer_start_range_ns(&hwc->hrtimer, in perf_swevent_start_hrtimer()
6912 ktime_t remaining = hrtimer_get_remaining(&hwc->hrtimer); in perf_swevent_cancel_hrtimer()
6915 hrtimer_cancel(&hwc->hrtimer); in perf_swevent_cancel_hrtimer()
6926 hrtimer_init(&hwc->hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in perf_swevent_init_hrtimer()
6927 hwc->hrtimer.function = perf_swevent_hrtimer; in perf_swevent_init_hrtimer()
7232 if (hrtimer_active(&cpuctx->hrtimer)) in perf_event_mux_interval_ms_store()
7233 hrtimer_forward_now(&cpuctx->hrtimer, cpuctx->hrtimer_interval); in perf_event_mux_interval_ms_store()