]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86, microcode, amd: Make find_ucode_in_initrd() __init
authorJacob Shin <jacob.shin@amd.com>
Wed, 5 Jun 2013 20:13:55 +0000 (15:13 -0500)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 5 Jun 2013 20:56:47 +0000 (13:56 -0700)
commit275bbe2e299f1820ec8faa443d689469a9e6ecc5
tree7e6a4faae73185e13ccf7c127f70c25a713026bf
parent6b3389ac21b5e557b957f1497d0ff22bf733e8c3
x86, microcode, amd: Make find_ucode_in_initrd() __init

Change find_ucode_in_initrd() to __init and only let BSP call it
during cold boot. This is the right thing to do because only BSP will
see initrd loaded by the boot loader. APs will offset into
initrd_start to find the microcode patch binary.

Reported-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Jacob Shin <jacob.shin@amd.com>
Link: http://lkml.kernel.org/r/1370463236-2115-2-git-send-email-jacob.shin@amd.com
Cc: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/kernel/microcode_amd_early.c