From: Liang, Kan Date: Fri, 3 Jul 2015 20:08:27 +0000 (+0000) Subject: perf/x86/intel/pebs: Fix event disable PEBS buffer drain X-Git-Tag: omap-for-v4.3/fixes-merge-window~24^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a853e1123cbbb43ff74cc47b4ec582ce34df262;p=pandora-kernel.git perf/x86/intel/pebs: Fix event disable PEBS buffer drain When disabling a PEBS event, we need to drain the buffer. Doing so requires a correct cpuc->pebs_active mask. The current code clears the pebs_active bit before draining the buffer. Fix that. Signed-off-by: "Liang, Kan" Signed-off-by: Peter Zijlstra (Intel) Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Vince Weaver Link: http://lkml.kernel.org/r/37D7C6CF3E00A74B8858931C1DB2F07701885A65@SHSMSX103.ccr.corp.intel.com [ Fixed the SOB. ] Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed