From: Yan, Zheng Date: Fri, 15 Jun 2012 06:31:31 +0000 (+0800) Subject: perf: Avoid race between cpu hotplug and installing event X-Git-Tag: v3.6-rc1~167^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbfc623f8231c8d8c78aab5841e9c6e5811ab638;p=pandora-kernel.git perf: Avoid race between cpu hotplug and installing event perf_event_open() requires the cpu on which to install event is online, but the cpu can go offline after perf_event_open checks that. Add a get_online_cpus()/put_online_cpus() pair to avoid the race. Signed-off-by: Zheng Yan Signed-off-by: Peter Zijlstra Link: http://lkml.kernel.org/r/1339741902-8449-3-git-send-email-zheng.z.yan@intel.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed