x86/microcode: Allow late microcode loading with SMT disabled
authorJosh Poimboeuf <jpoimboe@redhat.com>
Fri, 10 Aug 2018 07:31:10 +0000 (08:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Aug 2018 16:13:01 +0000 (18:13 +0200)
commite456004eb77734e274e520c83ad9be76736e622c
tree17430e5443eb78b44fa7ddccc86e26b4b0e1edf5
parent36f50a5cd27601ae304830f1dec250b4988002ce
x86/microcode: Allow late microcode loading with SMT disabled

commit 07d981ad4cf1e78361c6db1c28ee5ba105f96cc1 upstream

The kernel unnecessarily prevents late microcode loading when SMT is
disabled.  It should be safe to allow it if all the primary threads are
online.

Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Acked-by: Borislav Petkov <bp@suse.de>
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/cpu/microcode/core.c