x86,xen: use current->state helpers
authorDavidlohr Bueso <dave@stgolabs.net>
Mon, 26 Jan 2015 10:10:08 +0000 (02:10 -0800)
committerDavid Vrabel <david.vrabel@citrix.com>
Mon, 26 Jan 2015 10:21:26 +0000 (10:21 +0000)
Call __set_current_state() instead of assigning the new state directly.
These interfaces also aid CONFIG_DEBUG_ATOMIC_SLEEP environments,
keeping track of who changed the state.

Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
arch/x86/xen/smp.c

index 4c071aeb8417bb419a45632c7d9f9a5c96bf3e76..08e8489c47f1ba058ca57dd6353d6bf9c1776ba7 100644 (file)
@@ -507,7 +507,7 @@ static int xen_cpu_disable(void)
 static void xen_cpu_die(unsigned int cpu)
 {
        while (xen_pv_domain() && HYPERVISOR_vcpu_op(VCPUOP_is_up, cpu, NULL)) {
-               current->state = TASK_UNINTERRUPTIBLE;
+               __set_current_state(TASK_UNINTERRUPTIBLE);
                schedule_timeout(HZ/10);
        }