cpu/hotplug: Expose SMT control init function
authorJiri Kosina <jkosina@suse.cz>
Fri, 13 Jul 2018 14:23:23 +0000 (16:23 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 13 Jul 2018 14:29:55 +0000 (16:29 +0200)
commit8e1b706b6e819bed215c0db16345568864660393
treed26ce3c19992b9bd85676bb3bef68c8854acc7d9
parent895ae47f9918833c3a880fbccd41e0692b37e7d9
cpu/hotplug: Expose SMT control init function

The L1TF mitigation will gain a commend line parameter which allows to set
a combination of hypervisor mitigation and SMT control.

Expose cpu_smt_disable() so the command line parser can tweak SMT settings.

[ tglx: Split out of larger patch and made it preserve an already existing
   force off state ]

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Jiri Kosina <jkosina@suse.cz>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lkml.kernel.org/r/20180713142323.039715135@linutronix.de
include/linux/cpu.h
kernel/cpu.c