cpu/intel: Fix the spacing issues
Fix the following errors and warnings detected by checkpatch.pl: ERROR: spaces required around that '=' (ctx:VxV) ERROR: space required after that ',' (ctx:VxV) ERROR: space prohibited after that open parenthesis '(' ERROR: space prohibited before that close parenthesis ')' ERROR: need consistent spacing around '-' (ctx:WxV) ERROR: spaces required around that '>' (ctx:VxV) ERROR: need consistent spacing around '>>' (ctx:WxV) ERROR: need consistent spacing around '<<' (ctx:VxW) ERROR: spaces required around that '||' (ctx:VxV) ERROR: "foo * bar" should be "foo *bar" ERROR: "(foo*)" should be "(foo *)" WARNING: space prohibited between function name and open parenthesis '(' WARNING: storage class should be at the beginning of the declaration TEST=Build and run on Galileo Gen2 Change-Id: I6602fbc8602171ab6c2f3b6c204558ad2c811179 Signed-off-by: Lee Leahy <Leroy.P.Leahy@intel.com> Reviewed-on: https://review.coreboot.org/18847 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
@@ -93,10 +93,10 @@ static void configure_misc(void)
|
||||
|
||||
// set maximum CPU speed
|
||||
msr = rdmsr(IA32_PERF_STS);
|
||||
int busratio_max=(msr.hi >> (40-32)) & 0x1f;
|
||||
int busratio_max = (msr.hi >> (40-32)) & 0x1f;
|
||||
|
||||
msr = rdmsr(IA32_PLATFORM_ID);
|
||||
int vid_max=msr.lo & 0x3f;
|
||||
int vid_max = msr.lo & 0x3f;
|
||||
|
||||
msr.lo &= ~0xffff;
|
||||
msr.lo |= busratio_max << 8;
|
||||
|
Reference in New Issue
Block a user