diff --git a/kernel/events/core.c b/kernel/events/core.c index 9c537896d94af3..5319da69108130 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -5660,6 +5660,7 @@ static void perf_swevent_init_hrtimer(struct perf_event *event) hrtimer_init(&hwc->hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); hwc->hrtimer.function = perf_swevent_hrtimer; + hwc->hrtimer.irqsafe = 1; /* * Since hrtimers have a fixed rate, we can do a static freq->period