hc
2023-11-06 e3e12f52b214121840b44c91de5b3e5af5d3eb84
kernel/kernel/events/core.c
....@@ -1113,7 +1113,7 @@
11131113 cpuctx->hrtimer_interval = ns_to_ktime(NSEC_PER_MSEC * interval);
11141114
11151115 raw_spin_lock_init(&cpuctx->hrtimer_lock);
1116
- hrtimer_init(timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_PINNED);
1116
+ hrtimer_init(timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_PINNED_HARD);
11171117 timer->function = perf_mux_hrtimer_handler;
11181118 }
11191119
....@@ -9307,7 +9307,7 @@
93079307 if (!is_sampling_event(event))
93089308 return;
93099309
9310
- hrtimer_init(&hwc->hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
9310
+ hrtimer_init(&hwc->hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL_HARD);
93119311 hwc->hrtimer.function = perf_swevent_hrtimer;
93129312
93139313 /*