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:14:55 +0000 (18:14 +0200)
commitda540c063b06b18f77168c8a52ee5a9c783a7481
tree32eea2589b3e3e90266197365f69a3f81d0a30a2
parent760f9488c13b7d2da69b152a55069e0267ca1477
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