]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/microcode: probe CPU features on microcode update
authorAnkur Arora <ankur.a.arora@oracle.com>
Wed, 25 Apr 2018 22:12:25 +0000 (18:12 -0400)
committerBrian Maly <brian.maly@oracle.com>
Tue, 8 May 2018 19:59:16 +0000 (15:59 -0400)
commit6cbf2f1a9000030d8a045213bae357036a5472bd
tree662bb614c005be828442937c39cbcb04ea6c3ba3
parent6b66bc2c9dd91ed006f2160b012d068d7221dac8
x86/microcode: probe CPU features on microcode update

Probe for updated CPUID features each time the microcode is
loaded. Specifically this means when the sysfs cpu/microcode
nodes are created (which is when the microcode is first loaded)
or from a user trigger via the sysfs microcode/reload interface.

Orabug: 27878230

Signed-off-by: Ankur Arora <ankur.a.arora@oracle.com>
Reviewed-by: Krish Sadhukhan <krish.sadhukhan@oracle.com>
(cherry-picked from commit c97a2bf2aa93390b23fbf9adb943e494fee18a18)

conflicts:
  arch/x86/kernel/cpu/microcode/core.c
  arch/x86/include/asm/processor.h

[Backport: call init_scattered_cpuid_features() instead of
 get_cpu_cap().]

Signed-off-by: Brian Maly <brian.maly@oracle.com>
arch/x86/kernel/cpu/microcode/core.c