diff options
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2019-04-16 03:50:24 +0200 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2019-04-16 03:53:24 +0200 |
commit | 850fb2c12f446023c3d186f6050c9a5fec998266 (patch) | |
tree | 2a6654541011544ca34fb3357eeb8986b401aca2 /recipes-kernel/linux/linux-toradex-rt-4.9-2.3.x/002f.patch | |
parent | a5f5d85e52717e136e692478fb5d822c1ce70046 (diff) |
linux-toradex-rt: fix it again
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Diffstat (limited to 'recipes-kernel/linux/linux-toradex-rt-4.9-2.3.x/002f.patch')
-rw-r--r-- | recipes-kernel/linux/linux-toradex-rt-4.9-2.3.x/002f.patch | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/recipes-kernel/linux/linux-toradex-rt-4.9-2.3.x/002f.patch b/recipes-kernel/linux/linux-toradex-rt-4.9-2.3.x/002f.patch deleted file mode 100644 index f50b1aa..0000000 --- a/recipes-kernel/linux/linux-toradex-rt-4.9-2.3.x/002f.patch +++ /dev/null @@ -1,42 +0,0 @@ ---- b/include/linux/cpu.h -+++ a/include/linux/cpu.h -@@ -266,10 +266,8 @@ - - #if defined(CONFIG_SMP) && defined(CONFIG_HOTPLUG_SMT) - extern enum cpuhp_smt_control cpu_smt_control; --extern void cpu_smt_disable(bool force); - #else - # define cpu_smt_control (CPU_SMT_ENABLED) --static inline void cpu_smt_disable(bool force) { } - #endif - - #endif /* _LINUX_CPU_H_ */ ---- b/kernel/cpu.c -+++ a/kernel/cpu.c -@@ -360,23 +360,13 @@ - enum cpuhp_smt_control cpu_smt_control __read_mostly = CPU_SMT_ENABLED; - EXPORT_SYMBOL_GPL(cpu_smt_control); - -+static int __init smt_cmdline_disable(char *str) --void __init cpu_smt_disable(bool force) - { -+ cpu_smt_control = CPU_SMT_DISABLED; -+ if (str && !strcmp(str, "force")) { -- if (cpu_smt_control == CPU_SMT_FORCE_DISABLED || -- cpu_smt_control == CPU_SMT_NOT_SUPPORTED) -- return; -- -- if (force) { - pr_info("SMT: Force disabled\n"); - cpu_smt_control = CPU_SMT_FORCE_DISABLED; -- } else { -- cpu_smt_control = CPU_SMT_DISABLED; - } --} -- --static int __init smt_cmdline_disable(char *str) --{ -- cpu_smt_disable(str && !strcmp(str, "force")); - return 0; - } - early_param("nosmt", smt_cmdline_disable); |