]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
x86/common.c: load ucode in 64 bit or show loading ucode info in 32 bit on AP
authorFenghua Yu <fenghua.yu@intel.com>
Fri, 21 Dec 2012 07:44:24 +0000 (23:44 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 31 Jan 2013 21:19:06 +0000 (13:19 -0800)
In 64 bit, load ucode on AP in cpu_init().

In 32 bit, show ucode loading info on AP in cpu_init(). Microcode has been
loaded earlier before paging. Now it is safe to show the loading microcode
info on this AP.

Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Link: http://lkml.kernel.org/r/1356075872-3054-5-git-send-email-fenghua.yu@intel.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/kernel/cpu/common.c

index d7fd2468752ac5d15c678782bf85a03579f6c3e6..d814772c5bed816cf6e463b04daaea940a7289ff 100644 (file)
@@ -1220,6 +1220,12 @@ void __cpuinit cpu_init(void)
        int cpu;
        int i;
 
+       /*
+        * Load microcode on this cpu if a valid microcode is available.
+        * This is early microcode loading procedure.
+        */
+       load_ucode_ap();
+
        cpu = stack_smp_processor_id();
        t = &per_cpu(init_tss, cpu);
        oist = &per_cpu(orig_ist, cpu);
@@ -1311,6 +1317,8 @@ void __cpuinit cpu_init(void)
        struct tss_struct *t = &per_cpu(init_tss, cpu);
        struct thread_struct *thread = &curr->thread;
 
+       show_ucode_info_early();
+
        if (cpumask_test_and_set_cpu(cpu, cpu_initialized_mask)) {
                printk(KERN_WARNING "CPU#%d already initialized!\n", cpu);
                for (;;)