[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 3/6] xen: add new cpu notifier action CPU_RESUME_FAILED



>>> On 18.03.19 at 14:11, <jgross@xxxxxxxx> wrote:
> --- a/xen/common/cpu.c
> +++ b/xen/common/cpu.c
> @@ -214,7 +214,12 @@ void enable_nonboot_cpus(void)
>              printk("Error bringing CPU%d up: %d\n", cpu, error);
>              BUG_ON(error == -EBUSY);
>          }
> +        else
> +            __cpumask_clear_cpu(cpu, &frozen_cpus);
>      }
>  
> +    for_each_cpu ( cpu, &frozen_cpus )
> +        BUG_ON(cpu_notifier_call_chain(cpu, CPU_RESUME_FAILED, NULL));
> +
>      cpumask_clear(&frozen_cpus);
>  }

Is there a particular reason you add a second loop here?

Jan



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.