oprofile/x86: make AMD IBS hotplug capable
authorRobert Richter <robert.richter@amd.com>
Wed, 5 May 2010 15:47:17 +0000 (17:47 +0200)
committerRobert Richter <robert.richter@amd.com>
Thu, 6 May 2010 13:11:15 +0000 (15:11 +0200)
commitbae663bc635e2726c7c5228dbf0f2051e16d1c81
tree4330eb087e99c223d7d60d806d9fcf786482686b
parent3de668ee8d5b1e08da3200f926ff5a28aeb99bc2
oprofile/x86: make AMD IBS hotplug capable

Current IBS code is not hotplug capable. An offline cpu might not be
initialized or deinitialized properly. This patch fixes this by
removing on_each_cpu() functions. The IBS init/deinit code is executed
in the per-cpu functions model->setup_ctrs() and model->cpu_down()
which are also called by hotplug notifiers. model->cpu_down() replaces
model->exit() that became obsolete.

Cc: Andi Kleen <andi@firstfloor.org>
Signed-off-by: Robert Richter <robert.richter@amd.com>
arch/x86/oprofile/nmi_int.c
arch/x86/oprofile/op_model_amd.c
arch/x86/oprofile/op_x86_model.h
This page took 0.036195 seconds and 5 git commands to generate.