perf/core: Update ctx time before detaching events
commit0ee098c97a6ebe163180e74b740c0a37bcdaa173
authorPeter Zijlstra <peterz@infradead.org>
Tue, 5 Sep 2017 11:24:28 +0000 (5 13:24 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 27 Oct 2017 08:31:57 +0000 (27 10:31 +0200)
treeccb8528331de304ecc3d7cd49793009814e73b65
parentca0dd44cf37bfe316751e1701439c3ff44beb05c
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) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/events/core.c