Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- drivers/xen/cpu_hotplug.c | 7 +++----
- 1 file changed, 3 insertions(+), 4 deletions(-)
- diff --git a/drivers/xen/cpu_hotplug.c b/drivers/xen/cpu_hotplug.c
- index 5676aef..ee26cd9 100644
- --- a/drivers/xen/cpu_hotplug.c
- +++ b/drivers/xen/cpu_hotplug.c
- @@ -18,11 +18,10 @@ static void enable_hotplug_cpu(int cpu)
- static void disable_hotplug_cpu(int cpu)
- {
- - if (cpu_online(cpu)) {
- - lock_device_hotplug();
- + lock_device_hotplug();
- + if (cpu_online(cpu))
- device_offline(get_cpu_device(cpu));
- - unlock_device_hotplug();
- - }
- + unlock_device_hotplug();
- if (cpu_present(cpu))
- xen_arch_unregister_cpu(cpu);
- --
- 1.7.12.4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement