From: Robert Richter Date: Wed, 29 Apr 2009 10:47:16 +0000 (+0200) Subject: perf_counter, x86: generic use of cpuc->active X-Git-Tag: v2.6.31-rc1~383^2~336 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=095342389e2ed8deed07b3076f990260ce3c7c9f;p=pandora-kernel.git perf_counter, x86: generic use of cpuc->active cpuc->active will now be used to indicate an enabled counter which implies also valid pointers of cpuc->counters[]. In contrast, cpuc->used only locks the counter, but it can be still uninitialized. [ Impact: refactor and generalize code ] Signed-off-by: Robert Richter Cc: Paul Mackerras Acked-by: Peter Zijlstra LKML-Reference: <1241002046-8832-20-git-send-email-robert.richter@amd.com> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed