From: Robert Richter Date: Wed, 29 Apr 2009 10:47:20 +0000 (+0200) Subject: perf_counter, x86: change and remove pmu initialization checks X-Git-Tag: v2.6.31-rc1~383^2~332 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85cf9dba92152bb4edec118b2f4f0be1ae7fdcab;p=pandora-kernel.git perf_counter, x86: change and remove pmu initialization checks Some functions are only called if the pmu was proper initialized. That initalization checks can be removed. The way to check initialization changed too. Now, the pointer to the interrupt handler is checked. If it exists the pmu is initialized. This also removes a static variable and uses struct x86_pmu as only data source for the check. [ Impact: simplify code ] Signed-off-by: Robert Richter Cc: Paul Mackerras Acked-by: Peter Zijlstra LKML-Reference: <1241002046-8832-24-git-send-email-robert.richter@amd.com> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed