Messages in this thread | | | Subject | Re: [PATCH v1] xen: avoid crash in disable_hotplug_cpu | From | Juergen Gross <> | Date | Wed, 5 Sep 2018 14:04:01 +0200 |
| |
On 05/09/18 13:50, Olaf Hering wrote: > Am Wed, 5 Sep 2018 12:55:58 +0200 > schrieb Juergen Gross <jgross@suse.com>: > >> the last cpu > > Which one is the "last" one? I mean, if cpu#0 never can be offlined than perhaps the code should check for just that and return early. But if cpu#0 could be disabled while some other cpu is the remaining cpu, some other check is needed I think.
num_online_cpus() == 1
Juergen
| |