# Re: \[PATCH v5 3/5\] ARM: smp: Free up the TLS register while running in the kernel

- From: Linus Walleij \<hidden\>
- Date: 2021-09-21 15:24:08 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2021/09/8811846
- 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:

> To prepare for a subsequent patch that stores the current task pointer
> in the user space TLS register while running in the kernel, modify the
> set_tls and switch_tls routines not to touch the register directly, and
> update the return to user space code to load the correct value.
>
> Signed-off-by: Ard Biesheuvel <ardb@kernel.org>

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
```
