mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
perf/core: Update ctx time before detaching events
We should make sure the ctx time is updated before we detach events; which will want to update event times. Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
ca0dd44cf3
commit
0ee098c97a
1 changed files with 1 additions and 0 deletions
|
|
@ -11129,6 +11129,7 @@ static void __perf_event_exit_context(void *__info)
|
|||
struct perf_event *event;
|
||||
|
||||
raw_spin_lock(&ctx->lock);
|
||||
ctx_sched_out(ctx, cpuctx, EVENT_TIME);
|
||||
list_for_each_entry(event, &ctx->event_list, event_entry)
|
||||
__perf_remove_from_context(event, cpuctx, ctx, (void *)DETACH_GROUP);
|
||||
raw_spin_unlock(&ctx->lock);
|
||||
|
|
|
|||
Loading…
Reference in a new issue