Re: [PATCH] [24/48] Suspend2 2.1.9.8 for 2.6.12: 601-kernel_power_power-header.patch

Zwane Mwaikambo
2005-07-06T05:33:07Z

On Wed, 6 Jul 2005, Nigel Cunningham wrote:

> diff -ruNp 602-smp.patch-old/kernel/power/suspend2_core/smp.c 602-smp.patch-new/kernel/power/suspend2_core/smp.c
> --- 602-smp.patch-old/kernel/power/suspend2_core/smp.c 1970-01-01 10:00:00.000000000 +1000
> +++ 602-smp.patch-new/kernel/power/suspend2_core/smp.c 2005-07-04 23:14:19.000000000 +1000
> @@ -0,0 +1,12 @@
> +#include <linux/sched.h>
> +
> +void ensure_on_processor_zero(void)
> +{
> + set_cpus_allowed(current, cpumask_of_cpu(0));
> + BUG_ON(smp_processor_id() != 0);
> +}
> +
> +void return_to_all_processors(void)
> +{
> + set_cpus_allowed(current, CPU_MASK_ALL);
> +}

Do we really need to wrap these?