events: Move lockless timer calculation into helper function
authorEric B Munson <emunson@mgebm.net>
Thu, 23 Jun 2011 20:34:38 +0000 (16:34 -0400)
committerIngo Molnar <mingo@elte.hu>
Fri, 1 Jul 2011 09:06:33 +0000 (11:06 +0200)
commitc4794295917ebeda8013b6cb9c8d71ab4f74a1fa
treebb422e3368f2ad686e69229b416536b2bcb1df8e
parentb7526f0ca6dc68f57ca467ce503151b1d476a3e4
events: Move lockless timer calculation into helper function

Take the timer calculation from perf_output_read and move it to a helper
function for any place that needs timer values but cannot take the ctx->lock.

Signed-off-by: Eric B Munson <emunson@mgebm.net>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1308861279-15216-2-git-send-email-emunson@mgebm.net
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/events/core.c