perf: Clarify perf_cpu_context::active_pmu usage by renaming it to ::unique_pmu
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Tue, 2 Oct 2012 13:38:52 +0000 (15:38 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 5 Oct 2012 11:59:06 +0000 (13:59 +0200)
commit3f1f33206c16c7b3839d71372bc2ac3f305aa802
tree683e2af07cb49e9a333f982e72088929027881c1
parent2e132b12f78d88672711ae1d87624951de1089ca
perf: Clarify perf_cpu_context::active_pmu usage by renaming it to ::unique_pmu

Stephane thought the perf_cpu_context::active_pmu name confusing and
suggested using 'unique_pmu' instead.

This pointer is a pointer to a 'random' pmu sharing the cpuctx
instance, therefore limiting a for_each_pmu loop to those where
cpuctx->unique_pmu matches the pmu we get a loop over unique cpuctx
instances.

Suggested-by: Stephane Eranian <eranian@google.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/n/tip-kxyjqpfj2fn9gt7kwu5ag9ks@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/perf_event.h
kernel/events/core.c