Skip to content

Commit 8c7855d

Browse files
author
Peter Zijlstra
committed
perf: Simplify group_sched_out()
Since event_sched_out() clears cpuctx->exclusive upon removal of an exclusive event (and only group leaders can be exclusive), there is no point in group_sched_out() trying to do it too. It is impossible for cpuctx->exclusive to still be set here. Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent e506d1d commit 8c7855d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

kernel/events/core.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2312,9 +2312,6 @@ group_sched_out(struct perf_event *group_event,
23122312
event_sched_out(event, cpuctx, ctx);
23132313

23142314
perf_pmu_enable(ctx->pmu);
2315-
2316-
if (group_event->attr.exclusive)
2317-
cpuctx->exclusive = 0;
23182315
}
23192316

23202317
#define DETACH_GROUP 0x01UL

0 commit comments

Comments
 (0)