From: Peter Zijlstra Date: Tue, 2 Jun 2009 14:08:20 +0000 (+0200) Subject: perf_counter: x86: Emulate longer sample periods X-Git-Tag: v2.6.31-rc1~383^2~123 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4abb5d4f7ddabc1fc7c392cf0a10d8e5868c9ca;p=pandora-kernel.git perf_counter: x86: Emulate longer sample periods Do as Power already does, emulate sample periods up to 2^63-1 by composing them of smaller values limited by hardware capabilities. Only once we wrap the software period do we generate an overflow event. Just 10 lines of new code. Reported-by: Stephane Eranian Signed-off-by: Peter Zijlstra Cc: Mike Galbraith Cc: Paul Mackerras Cc: Corey Ashford Cc: Marcelo Tosatti Cc: Arnaldo Carvalho de Melo Cc: Thomas Gleixner Cc: John Kacur LKML-Reference: Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed