From: Peter Zijlstra Date: Wed, 13 May 2009 07:45:19 +0000 (+0200) Subject: perf_counter: x86: More accurate counter update X-Git-Tag: v2.6.31-rc1~383^2~281 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec3232bdf8518bea8410f0027f870b24d3aa8753;p=pandora-kernel.git perf_counter: x86: More accurate counter update Take the counter width into account instead of assuming 32 bits. In particular Nehalem has 44 bit wide counters, and all arithmetics should happen on a 44-bit signed integer basis. [ Impact: fix rare event imprecision, warning message on Nehalem ] Signed-off-by: Peter Zijlstra Cc: Paul Mackerras Cc: Corey Ashford LKML-Reference: Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed