From: Mark Rutland Date: Tue, 23 Aug 2011 10:59:49 +0000 (+0100) Subject: ARM: perf: Remove unnecessary armpmu->enable()s X-Git-Tag: v3.2-rc1~130^2~7^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7325eaec439cd0cc8c9b61b59d41d99abace1b23;p=pandora-kernel.git ARM: perf: Remove unnecessary armpmu->enable()s Currently, armpmu_enable iterates through the events for a given counter set, calling armpmu->enable on each before calling armpmu->start to start the PMU's counters. As armpmu->enable is called when each event is added, each event is already configured in hardware. Due to this, calling armpmu->enable in armpmu_enable is unnecessary and confusing. This patch removes the unnecessary calls to armpmu->enable. Signed-off-by: Mark Rutland Signed-off-by: Will Deacon --- Reading git-diff-tree failed