Re: [Patch v3 05/13] x86/smt: Create cpu_smt_enabled static key for SMT specific code

From: Thomas Gleixner
Date: Thu Oct 18 2018 - 09:04:02 EST


On Wed, 17 Oct 2018, Tim Chen wrote:

> Create the cpu_smt_enabled static key to indicate if we are
> using SMT. SMT specific code paths are executed only when SMT
> code paths are enabled by this key.
>
> Signed-off-by: Tim Chen <tim.c.chen@xxxxxxxxxxxxxxx>
> ---
> arch/x86/kernel/cpu/bugs.c | 2 +-
> arch/x86/kvm/vmx.c | 2 +-
> include/linux/cpu.h | 1 +
> kernel/cpu.c | 12 ++++++++++--

I have a hard time to understand why the subject prefix is x86/smt.

This want's to be split into:

1) Add the static key to the core

2) Make use of it in x86

Thanks,

tglx