From: Peter Zijlstra Date: Mon, 6 Apr 2009 09:45:04 +0000 (+0200) Subject: perf_counter: theres more to overflow than writing events X-Git-Tag: v2.6.31-rc1~383^2~402 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6c7d5fe58b4846ee0cb4b98b6042489705eced4;p=pandora-kernel.git perf_counter: theres more to overflow than writing events Prepare for more generic overflow handling. The new perf_counter_overflow() method will handle the generic bits of the counter overflow, and can return a !0 return value, in which case the counter should be (soft) disabled, so that it won't count until it's properly disabled. XXX: do powerpc and swcounter Signed-off-by: Peter Zijlstra Cc: Paul Mackerras Cc: Corey Ashford LKML-Reference: <20090406094517.812109629@chello.nl> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed