diff options
author | 2014-04-07 01:36:08 +0800 | |
---|---|---|
committer | 2014-04-08 13:15:54 +0200 | |
commit | 553f809e23f00976caea7a1ebdabaa58a6383e7d (patch) | |
tree | 85cce570dee49945280cc4d5233616e1e1537961 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | Merge tag 'cpu-hotplug-3.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm (diff) | |
download | linux-dev-553f809e23f00976caea7a1ebdabaa58a6383e7d.tar.xz linux-dev-553f809e23f00976caea7a1ebdabaa58a6383e7d.zip |
arm, kvm: fix double lock on cpu_add_remove_lock
Commit 8146875de7d4 (arm, kvm: Fix CPU hotplug callback registration)
holds the lock before calling the two functions:
kvm_vgic_hyp_init()
kvm_timer_hyp_init()
and both the two functions are calling register_cpu_notifier()
to register cpu notifier, so cause double lock on cpu_add_remove_lock.
Considered that both two functions are only called inside
kvm_arch_init() with holding cpu_add_remove_lock, so simply use
__register_cpu_notifier() to fix the problem.
Fixes: 8146875de7d4 (arm, kvm: Fix CPU hotplug callback registration)
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Reviewed-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions