From: Robert Richter Date: Mon, 2 Apr 2012 18:19:10 +0000 (+0200) Subject: perf/x86-ibs: Fix frequency profiling X-Git-Tag: v3.5-rc1~141^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6accb9cf76080422d400a641d9068b6b2a2c216f;p=pandora-kernel.git perf/x86-ibs: Fix frequency profiling Fixing profiling at a fixed frequency, in this case the freq value and sample period was setup incorrectly. Since sampling periods are adjusted we also allow periods that have lower 4 bits set. Another fix is the setup of the hw counter: If we modify hwc->sample_period, we also need to update hwc->last_period and hwc->period_left. Signed-off-by: Robert Richter Signed-off-by: Peter Zijlstra Link: http://lkml.kernel.org/r/1333390758-10893-5-git-send-email-robert.richter@amd.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed