OSDN Git Service

perf: Allow the PMU driver to choose the CPU on which to install events
authorYan, Zheng <zheng.z.yan@intel.com>
Fri, 15 Jun 2012 06:31:32 +0000 (14:31 +0800)
committerIngo Molnar <mingo@kernel.org>
Mon, 18 Jun 2012 10:13:21 +0000 (12:13 +0200)
commite2d37cd213dcc0aeb3db4b37b9bd1710fe36fbf7
tree90e769d4c07a5f7f895a4c7459d72caf5aec75b2
parentfbfc623f8231c8d8c78aab5841e9c6e5811ab638
perf: Allow the PMU driver to choose the CPU on which to install events

Allow the pmu->event_init callback to change event->cpu, so the PMU driver
can choose the CPU on which to install events.

Signed-off-by: Zheng Yan <zheng.z.yan@intel.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1339741902-8449-4-git-send-email-zheng.z.yan@intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/events/core.c