|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2] x86: Fixup IRQs when CPUs go down during shutdown
On 02/12/15 13:46, Ross Lagerwall wrote:
> @@ -298,6 +299,13 @@ static void stop_this_cpu(void *dummy)
> void smp_send_stop(void)
> {
> int timeout = 10;
> + cpumask_t online;
> +
> + cpumask_clear(&online);
> + cpumask_set_cpu(smp_processor_id(), &online);
You can avoid this intermediate variable with cpumask_of(smp_processor_id())
There are a set of pre-canned cpumasks with a single cpu set.
~Andrew
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |