]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/cpufeatures: use cpu_data in init_scattered_cpuid_flags()
authorAnkur Arora <ankur.a.arora@oracle.com>
Wed, 25 Apr 2018 21:38:58 +0000 (17:38 -0400)
committerBrian Maly <brian.maly@oracle.com>
Tue, 8 May 2018 19:58:37 +0000 (15:58 -0400)
commit0fa448d49af55bf1215b2afa5548b8f95c34be67
treeb3ae71106e0fde31f27fbc0cefebad0b45d646b4
parent0d88073a346fcf63fd94ccb09208c783508c31fd
x86/cpufeatures: use cpu_data in init_scattered_cpuid_flags()

Post SMP init, cpu_data() contains the current cpuinfo state with
the boot_cpu_data potentially going stale.

Switch all boot_cpu_data references to cpu_data() in
init_scattered_cpuid_flags().

Orabug: 27878230

Signed-off-by: Ankur Arora <ankur.a.arora@oracle.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Krish Sadhukhan <krish.sadhukhan@oracle.com>
Reviewed-by: John Haxby <john.haxby@oracle.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
(cherry-picked from commit 6258d6d6ce2b9cf41830e8616ffc7841b3fddca9)

Conflict:
  arch/x86/kernel/cpu/common.c

[Backport: Modify init_scattered_cpuid_flags() instead of
 init_speculation_control().]

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