Lines Matching refs:hrtimer
762 static enum hrtimer_restart perf_mux_hrtimer_handler(struct hrtimer *hr) in perf_mux_hrtimer_handler()
769 cpuctx = container_of(hr, struct perf_cpu_context, hrtimer); in perf_mux_hrtimer_handler()
784 struct hrtimer *timer = &cpuctx->hrtimer; in __perf_mux_hrtimer_init()
809 struct hrtimer *timer = &cpuctx->hrtimer; in perf_mux_hrtimer_restart()
7150 static enum hrtimer_restart perf_swevent_hrtimer(struct hrtimer *hrtimer) in perf_swevent_hrtimer() argument
7158 event = container_of(hrtimer, struct perf_event, hw.hrtimer); in perf_swevent_hrtimer()
7175 hrtimer_forward_now(hrtimer, ns_to_ktime(period)); in perf_swevent_hrtimer()
7197 hrtimer_start(&hwc->hrtimer, ns_to_ktime(period), in perf_swevent_start_hrtimer()
7206 ktime_t remaining = hrtimer_get_remaining(&hwc->hrtimer); in perf_swevent_cancel_hrtimer()
7209 hrtimer_cancel(&hwc->hrtimer); in perf_swevent_cancel_hrtimer()
7220 hrtimer_init(&hwc->hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in perf_swevent_init_hrtimer()
7221 hwc->hrtimer.function = perf_swevent_hrtimer; in perf_swevent_init_hrtimer()