Skip to contentSkip to conversation

stop_machine: wean Xen off stop_machine_run

PATCH In review Rusty Russell 2 participants 3 messages Aug 13, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 stop_machine: wean Xen off stop_machine_run

This is the last use of (the deprecated) stop_machine_run in the tree.

drivers/xen/manage.c +1 -1
diff -r 332ec042cb4d drivers/xen/manage.c
@@ -102,7 +102,7 @@ static void do_suspend(void)
 	/* XXX use normal device tree? */
 	xenbus_suspend();
 
-	err = stop_machine_run(xen_suspend, &cancelled, 0);
+	err = stop_machine(xen_suspend, &cancelled, &cpumask_of_cpu(0));
 	if (err) {
 		printk(KERN_ERR "failed to start xen_suspend: %d\n", err);
 		goto out;
Acked-by on v1 1/1
#1 lore raw
Quoted 2 lines · Rusty Russell

This is the last use of (the deprecated) stop_machine_run in the tree.

OK, thanks.

Quoted 2 lines
Quoted 13 lines

diff -r 332ec042cb4d drivers/xen/manage.c

drivers/xen/manage.c +1 -1
@@ -102,7 +102,7 @@ static void do_suspend(void)
 	/* XXX use normal device tree? */
 	xenbus_suspend();
 
-	err = stop_machine_run(xen_suspend, &cancelled, 0);
+	err = stop_machine(xen_suspend, &cancelled, &cpumask_of_cpu(0));
 	if (err) {
 		printk(KERN_ERR "failed to start xen_suspend: %d\n", err);
 		goto out;
Acked-by on v1 1/1
#2 lore raw
In reply to Rusty Russell
Quoted 2 lines · Rusty Russell

This is the last use of (the deprecated) stop_machine_run in the tree.

OK, thanks.

Quoted 2 lines
Quoted 13 lines

diff -r 332ec042cb4d drivers/xen/manage.c

drivers/xen/manage.c +1 -1
@@ -102,7 +102,7 @@ static void do_suspend(void)
 	/* XXX use normal device tree? */
 	xenbus_suspend();
 
-	err = stop_machine_run(xen_suspend, &cancelled, 0);
+	err = stop_machine(xen_suspend, &cancelled, &cpumask_of_cpu(0));
 	if (err) {
 		printk(KERN_ERR "failed to start xen_suspend: %d\n", err);
 		goto out;