# Re: \[PATCH v2 1/2\] cpu/SMT: Enable SMT only if a core is online

- From: Thomas Gleixner \<hidden\>
- Date: 2024-07-31 10:27:49 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2024/07/2690874
- Thread: https://ratatoskr.run/linuxppc-dev/2024/07/2690348/t.md

```text
On Wed, Jul 31 2024 at 08:31, Nysal Jan K. A. wrote:
> If the user has decided to offline certain cores, enabling SMT should
> not online CPUs in those cores. This patch fixes the issue and changes
> the behaviour as described, by introducing an arch specific function
> topology_is_core_online(). It is currently implemented only for PowerPC.
>
> Fixes: 73c58e7e1412 ("powerpc: Add HOTPLUG_SMT support")
> Reported-by: Tyrel Datwyler <tyreld@linux.ibm.com>
> Closes: https://groups.google.com/g/powerpc-utils-devel/c/wrwVzAAnRlI/m/5KJSoqP4BAAJ
> Signed-off-by: Nysal Jan K.A <redacted>

Assuming this goes through the PPC tree:

  Reviewed-by: Thomas Gleixner [ref]

Michael: If I should route it through my tree, let me know.

Thanks,

        tglx
```
