Re: [PATCH v3] cpuidle-haltpoll: vcpu hotplug support

2019-09-03 Thread Rafael J. Wysocki
On Tue, Sep 3, 2019 at 12:18 AM Marcelo Tosatti wrote: > > On Mon, Sep 02, 2019 at 10:34:07PM +0200, Rafael J. Wysocki wrote: > > On Mon, Sep 2, 2019 at 12:43 PM Joao Martins > > wrote: > > > > > > When cpus != maxcpus cpuidle-haltpoll will fail to register all vcpus > > > past the online ones

Re: [PATCH v3] cpuidle-haltpoll: vcpu hotplug support

2019-09-02 Thread Marcelo Tosatti
On Mon, Sep 02, 2019 at 10:34:07PM +0200, Rafael J. Wysocki wrote: > On Mon, Sep 2, 2019 at 12:43 PM Joao Martins > wrote: > > > > When cpus != maxcpus cpuidle-haltpoll will fail to register all vcpus > > past the online ones and thus fail to register the idle driver. > > This is because

Re: [PATCH v3] cpuidle-haltpoll: vcpu hotplug support

2019-09-02 Thread Rafael J. Wysocki
On Mon, Sep 2, 2019 at 12:43 PM Joao Martins wrote: > > When cpus != maxcpus cpuidle-haltpoll will fail to register all vcpus > past the online ones and thus fail to register the idle driver. > This is because cpuidle_add_sysfs() will return with -ENODEV as a > consequence from get_cpu_device()

[PATCH v3] cpuidle-haltpoll: vcpu hotplug support

2019-09-02 Thread Joao Martins
When cpus != maxcpus cpuidle-haltpoll will fail to register all vcpus past the online ones and thus fail to register the idle driver. This is because cpuidle_add_sysfs() will return with -ENODEV as a consequence from get_cpu_device() return no device for a non-existing CPU. Instead switch to