Re: [Patch v5 08/16] smt: Create cpu_smt_enabled static key for SMT specific code

From: Tim Chen
Date: Mon Nov 19 2018 - 15:50:53 EST


On 11/19/2018 04:58 AM, Thomas Gleixner wrote:

>> +DECLARE_STATIC_KEY_TRUE(cpu_smt_enabled);
>
> And here it is declared unconditionally which allows code to use it despite
> CONFIG_HOTPLUG_SMT=n and subsequently breaks the build.

Will put this under #ifdef CONFIG_HOTPLUG_SMT

Tim