amd/model_fxx: fix code style in FID&VID support check
This is in AP code, fixed in preparation for copying the same check to BSP. Change-Id: I0750919d9fdb3d4e6666221ad82097e0c479cf14 Signed-off-by: Urja Rannikko <urjaman@gmail.com> Reviewed-on: http://review.coreboot.org/12359 Tested-by: build bot (Jenkins) Reviewed-by: Jonathan A. Kollasch <jakllsch@kollasch.net> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
parent
8a3ff6aa34
commit
00018c8270
|
@ -356,9 +356,8 @@ static void init_fidvid_ap(unsigned bsp_apicid, unsigned apicid)
|
|||
u32 fid_max;
|
||||
int loop;
|
||||
|
||||
if((cpuid_edx(0x80000007)&0x06)!=0x06) {
|
||||
if ((cpuid_edx(0x80000007) & 0x06) != 0x06)
|
||||
return; /* FID/VID change not supported */
|
||||
}
|
||||
|
||||
msr = rdmsr(0xc0010042);
|
||||
fid_max = ((msr.lo >> 16) & 0x3f); /* max fid */
|
||||
|
|
Loading…
Reference in New Issue