From: Anton Blanchard Date: Tue, 18 Jan 2011 10:44:04 +0000 (+1100) Subject: powerpc, perf: Fix frequency calculation for overflowing counters (FSL version) X-Git-Tag: v2.6.38-rc3~68^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c8a9b25b5de3f1eeac721cf34f4379e56d5d694;p=pandora-kernel.git powerpc, perf: Fix frequency calculation for overflowing counters (FSL version) When fixing the frequency calculations for perf on powerpc I forgot to fix the FSL version. If we dont set event->hw.last_period the frequency to period calculations in perf go haywire and we continually throttle/unthrottle the PMU. Signed-off-by: Anton Blanchard Acked-by: Benjamin Herrenschmidt Cc: Scott Wood Cc: Paul Mackerras Cc: Arnaldo Carvalho de Melo Cc: linuxppc-dev@lists.ozlabs.org Cc: Peter Zijlstra LKML-Reference: <20110118214404.2f42e634@kryten> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed