We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c7855d commit 251ff2dCopy full SHA for 251ff2d
kernel/events/core.c
@@ -2580,11 +2580,8 @@ group_sched_in(struct perf_event *group_event,
2580
2581
pmu->start_txn(pmu, PERF_PMU_TXN_ADD);
2582
2583
- if (event_sched_in(group_event, cpuctx, ctx)) {
2584
- pmu->cancel_txn(pmu);
2585
- perf_mux_hrtimer_restart(cpuctx);
2586
- return -EAGAIN;
2587
- }
+ if (event_sched_in(group_event, cpuctx, ctx))
+ goto error;
2588
2589
/*
2590
* Schedule in siblings as one group (if any):
@@ -2613,10 +2610,9 @@ group_sched_in(struct perf_event *group_event,
2613
2610
}
2614
2611
event_sched_out(group_event, cpuctx, ctx);
2615
2612
+error:
2616
pmu->cancel_txn(pmu);
2617
-
2618
perf_mux_hrtimer_restart(cpuctx);
2619
2620
return -EAGAIN;
2621
2622
0 commit comments