mirror of
https://github.com/torvalds/linux.git
synced 2026-05-29 17:43:52 +02:00
perf/core: Fix event timekeeping merge
Due to an oversight in merging:da916e96e2("perf: Make perf_pmu_unregister() useable") on top of:a3c3c66670("perf/core: Fix child_total_time_enabled accounting bug at task exit") the timekeeping fix from this latter patch got undone. Redo it. Fixes:da916e96e2("perf: Make perf_pmu_unregister() useable") Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lkml.kernel.org/r/20250417080815.GI38216@noisy.programming.kicks-ass.net
This commit is contained in:
parent
162c9e3faf
commit
b02b41c827
|
|
@ -2500,14 +2500,14 @@ __perf_remove_from_context(struct perf_event *event,
|
|||
state = PERF_EVENT_STATE_DEAD;
|
||||
}
|
||||
event_sched_out(event, ctx);
|
||||
perf_event_set_state(event, min(event->state, state));
|
||||
|
||||
if (flags & DETACH_GROUP)
|
||||
perf_group_detach(event);
|
||||
if (flags & DETACH_CHILD)
|
||||
perf_child_detach(event);
|
||||
list_del_event(event, ctx);
|
||||
|
||||
event->state = min(event->state, state);
|
||||
|
||||
if (!pmu_ctx->nr_events) {
|
||||
pmu_ctx->rotate_necessary = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user