perf/x86: Avoid kfree() in CPU_{STARTING,DYING}
authorYan, Zheng <zheng.z.yan@intel.com>
Tue, 16 Apr 2013 11:51:05 +0000 (19:51 +0800)
committerIngo Molnar <mingo@kernel.org>
Sun, 21 Apr 2013 08:59:01 +0000 (10:59 +0200)
commit22cc4ccf63e10e361531bf61e6e6c96c53a2f665
tree0deeb72d431b7916cb0a42ca1983ec2a250fa3d2
parent73e21ce28d8d2b75140b742b01373c3a085ecc52
perf/x86: Avoid kfree() in CPU_{STARTING,DYING}

On -rt kfree() can schedule, but CPU_{STARTING,DYING} should be
atomic. So use a list to defer kfree until CPU_{ONLINE,DEAD}.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: peterz@infradead.org
Cc: eranian@google.com
Cc: ak@linux.intel.com
Link: http://lkml.kernel.org/r/1366113067-3262-2-git-send-email-zheng.z.yan@intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event_intel_uncore.c