From: Peter Zijlstra Date: Mon, 23 Nov 2009 10:37:25 +0000 (+0100) Subject: perf_events: Disable events when we detach them X-Git-Tag: v2.6.33-rc1~399^2~103 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e2af50b1fab3c40636839a7f439c167ae559533;p=pandora-kernel.git perf_events: Disable events when we detach them If we leave the event in STATE_INACTIVE, any read of the event after the detach will increase the running count but not the enabled count and cause funny scaling artefacts. Signed-off-by: Peter Zijlstra Cc: Paul Mackerras Cc: Frederic Weisbecker LKML-Reference: <20091123103819.689055515@chello.nl> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed