From: Robert Richter Date: Wed, 2 Feb 2011 16:40:56 +0000 (+0100) Subject: perf, x86: Use helper function in x86_pmu_enable_all() X-Git-Tag: v2.6.39-rc1~510^2~70 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d45dd923fcc620c948bd1eda16cc61426ac31646;p=pandora-kernel.git perf, x86: Use helper function in x86_pmu_enable_all() Use helper function in x86_pmu_enable_all() to minimize access to x86_pmu.eventsel in the fast path. The counter's msr address is now calculated using struct hw_perf_event. Later we add code that calculates the msr addresses with a table lookup which shouldn't be done in the fast path. Signed-off-by: Robert Richter Signed-off-by: Peter Zijlstra LKML-Reference: <1296664860-10886-2-git-send-email-robert.richter@amd.com> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed