From: Peter Zijlstra Date: Mon, 25 May 2009 15:39:05 +0000 (+0200) Subject: perf_counter: Generic per counter interrupt throttle X-Git-Tag: v2.6.31-rc1~383^2~224 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a78ac3258782f3e64cb40beb5990808e1febcc0c;p=pandora-kernel.git perf_counter: Generic per counter interrupt throttle Introduce a generic per counter interrupt throttle. This uses the perf_counter_overflow() quick disable to throttle a specific counter when its going too fast when a pmu->unthrottle() method is provided which can undo the quick disable. Power needs to implement both the quick disable and the unthrottle method. Signed-off-by: Peter Zijlstra Cc: Paul Mackerras Cc: Corey Ashford Cc: Arnaldo Carvalho de Melo Cc: John Kacur LKML-Reference: <20090525153931.703093461@chello.nl> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed