Re: [PATCH 3/3] arm64: head: set __entry_task along with task setup

From: Kiryl Shutsemau (Meta)

Date: Thu Nov 19 2026 - 12:11:07 EST


On Wed, Nov 18, 2026 at 03:30:06PM +0000, Ada Couprie Diaz wrote:
> However, as far as I can tell this is not the case for secondaries :
> their first task on boot is set to the idle task, which they go to
> without switching until (and unless) something gets scheduled on the core.
> This would be the same path taken for CPU hotplug.

Secondaries brought up at boot have run their cpuhp thread before SDEI
probes: smp_init() comes before the initcalls. A CPU that was online
before still has its idle task in __entry_task. So only a CPU onlined
for the first time after SDEI probed can see NULL there.

--
Kiryl Shutsemau / Kirill A. Shutemov