From: Peter Zijlstra Date: Wed, 10 Jun 2009 11:40:57 +0000 (+0200) Subject: perf_counter: More aggressive frequency adjustment X-Git-Tag: v2.6.31-rc1~383^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd2b5b12849a3446abad0b25e920f86f5480b309;p=pandora-kernel.git perf_counter: More aggressive frequency adjustment Also employ the overflow handler to adjust the frequency, this results in a stable frequency in about 40~50 samples, instead of that many ticks. This also means we can start sampling at a sample period of 1 without running head-first into the throttle. It relies on sched_clock() to accurately measure the time difference between the overflow NMIs. Signed-off-by: Peter Zijlstra Cc: Mike Galbraith Cc: Paul Mackerras Cc: Arnaldo Carvalho de Melo LKML-Reference: Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed