# Re: \[PATCH v5 5/5\] ARM: smp: Enable THREAD\_INFO\_IN\_TASK

- From: Linus Walleij \<hidden\>
- Date: 2021-09-21 16:21:46 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2021/09/8811869
- Thread: https://ratatoskr.run/linux-arm-kernel/2021/09/8811764/t.md

```text
On Sat, Sep 18, 2021 at 10:44 AM Ard Biesheuvel [ref] wrote:

> Now that we no longer rely on thread_info living at the base of the task
> stack to be able to access the 'current' pointer, we can wire up the
> generic support for moving thread_info into the task struct itself.
>
> Note that this requires us to update the cpu field in thread_info
> explicitly, now that the core code no longer does so. Ideally, we would
> switch the percpu code to access the cpu field in task_struct instead,
> but this unleashes #include circular dependency hell.
>
> Co-developed-by: Keith Packard <redacted>
> Signed-off-by: Keith Packard <redacted>
> Signed-off-by: Ard Biesheuvel <ardb@kernel.org>

This solution looks (very) good to me.
Reviewed-by: Linus Walleij <redacted>

Yours,
Linus Walleij

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
```
