[coreboot-gerrit] Change in coreboot[master]: src/cpu: Fix checkpatch warning: no spaces at the start of a line

Martin Roth (Code Review) gerrit at coreboot.org
Mon Jul 24 04:15:00 CEST 2017


Martin Roth has uploaded this change for review. ( https://review.coreboot.org/20729


Change subject: src/cpu: Fix checkpatch warning: no spaces at the start of a line
......................................................................

src/cpu: Fix checkpatch warning: no spaces at the start of a line

Change-Id: Iabdaaaee49e8c5cead304cda66412aa36a2ffd19
Signed-off-by: Martin Roth <martinroth at google.com>
---
M src/cpu/amd/agesa/family15/fixme.c
M src/cpu/amd/family_10h-family_15h/fidvid.c
M src/cpu/amd/family_10h-family_15h/model_10xxx_init.c
3 files changed, 34 insertions(+), 34 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/29/20729/1

diff --git a/src/cpu/amd/agesa/family15/fixme.c b/src/cpu/amd/agesa/family15/fixme.c
index 03f4dff..9134d5a 100644
--- a/src/cpu/amd/agesa/family15/fixme.c
+++ b/src/cpu/amd/agesa/family15/fixme.c
@@ -20,31 +20,31 @@
 
 UINT64
 MsrRead (
-  IN       UINT32 MsrAddress
-  );
+	IN       UINT32 MsrAddress
+	);
 
 VOID
 MsrWrite (
-  IN       UINT32 MsrAddress,
-  IN			 UINT64 Value
-  );
+	IN       UINT32 MsrAddress,
+	IN			 UINT64 Value
+	);
 
 
 UINT64
 MsrRead (
-  IN       UINT32 MsrAddress
-  )
+	IN       UINT32 MsrAddress
+	)
 {
-  return __readmsr (MsrAddress);
+	return __readmsr (MsrAddress);
 }
 
 VOID
 MsrWrite (
-  IN       UINT32 MsrAddress,
-  IN			 UINT64 Value
-  )
+	IN       UINT32 MsrAddress,
+	IN			 UINT64 Value
+	)
 {
-  __writemsr (MsrAddress, Value);
+	__writemsr (MsrAddress, Value);
 }
 
 #if !IS_ENABLED(CONFIG_BOARD_AMD_DINAR)
diff --git a/src/cpu/amd/family_10h-family_15h/fidvid.c b/src/cpu/amd/family_10h-family_15h/fidvid.c
index 12fc2c7..e4bb9a3 100644
--- a/src/cpu/amd/family_10h-family_15h/fidvid.c
+++ b/src/cpu/amd/family_10h-family_15h/fidvid.c
@@ -310,7 +310,7 @@
 	msr = rdmsr(0xC0010064);
 	highVoltageVid = (u8) ((msr.lo >> PS_CPU_VID_SHFT) & 0x7F);
 	if (!(msr.hi & 0x80000000)) {
-  	    printk(BIOS_ERR,"P-state info in MSRC001_0064 is invalid !!!\n");
+	    printk(BIOS_ERR,"P-state info in MSRC001_0064 is invalid !!!\n");
 	    highVoltageVid = (u8) ((pci_read_config32(dev, 0x1E0)
 				     >> PS_CPU_VID_SHFT) & 0x7F);
 	}
@@ -340,7 +340,7 @@
 	/* If SVI, we only care about CPU VID.
 	 * If PVI, determine the higher voltage b/t NB and CPU
 	 * BKDG 2.4.1.7 (a)
- 	 */
+	 */
 	if (pviModeFlag) {
 		bValue = (u8) ((msr.lo >> PS_NB_VID_SHFT) & 0x7F);
 		if (lowVoltageVid > bValue)
@@ -685,8 +685,8 @@
 }
 
 static void set_pstate(u32 nonBoostedPState) {
-  	msr_t msr;
-  	uint8_t skip_wait;
+	msr_t msr;
+	uint8_t skip_wait;
 
 	// Transition P0 for calling core.
 	msr = rdmsr(0xC0010062);
@@ -735,23 +735,23 @@
 }
 
 static void fixPsNbVidBeforeWR(u32 newNbVid, u32 coreid, u32 dev, u8 pviMode)
- {
- 	msr_t msr;
- 	u8 startup_pstate;
+{
+	msr_t msr;
+	u8 startup_pstate;
 
- 	/* This function sets NbVid before the warm reset.
- 	 *       Get StartupPstate from MSRC001_0071.
+	/* This function sets NbVid before the warm reset.
+	 *       Get StartupPstate from MSRC001_0071.
 	 *       Read Pstate register pointed by [StartupPstate].
- 	 *       and copy its content to P0 and P1 registers.
- 	 *       Copy newNbVid to P0[NbVid].
- 	 *       transition to P1 on all cores,
- 	 *       then transition to P0 on core 0.
- 	 *       Wait for MSRC001_0063[CurPstate] = 000b on core 0.
+	 *       and copy its content to P0 and P1 registers.
+	 *       Copy newNbVid to P0[NbVid].
+	 *       transition to P1 on all cores,
+	 *       then transition to P0 on core 0.
+	 *       Wait for MSRC001_0063[CurPstate] = 000b on core 0.
 	 * see BKDG rev 3.48  2.4.2.9.1 BIOS NB COF and VID Configuration
 	 *			      for SVI and Single-Plane PVI Systems
- 	 */
+	 */
 
- 	msr = rdmsr(0xc0010071);
+	msr = rdmsr(0xc0010071);
 	startup_pstate = (msr.hi >> (32 - 32)) & 0x07;
 
 	/* Copy startup pstate to P1 and P0 MSRs. Set the maxvid for
@@ -768,7 +768,7 @@
 	 * PstatMaxVal is going to be 0 on cold reset anyway ?
 	 */
 	if (!(pci_read_config32(dev, 0xdc) & (~PS_MAX_VAL_MASK))) {
-  	   printk(BIOS_ERR,"F3xDC[PstateMaxVal] is zero. Northbridge voltage setting will fail. fixPsNbVidBeforeWR in fidvid.c needs fixing. See AMD # 31116 rev 3.48 BKDG 2.4.2.9.1\n");
+	   printk(BIOS_ERR,"F3xDC[PstateMaxVal] is zero. Northbridge voltage setting will fail. fixPsNbVidBeforeWR in fidvid.c needs fixing. See AMD # 31116 rev 3.48 BKDG 2.4.2.9.1\n");
 	};
 
 	msr.lo &= ~0xFE000000;	// clear nbvid
@@ -784,7 +784,7 @@
 
 	if (coreid == 0) {
 	     set_pstate(0);
- 	}
+	}
 
 	/* missing step 7 (restore PstateMax to 0 if needed) because
 	 * we skipped step 2
@@ -1010,7 +1010,7 @@
 		}
 		/* write newNbVid to P-state Reg's NbVid if its NbDid=0 */
 		fixPsNbVidAfterWR(nbvid, NbVidUpdateAll,pvimode);
- 	} else {		/* !nb_cof_vid_update */
+	} else {		/* !nb_cof_vid_update */
 		if (pvimode)
 			UpdateSinglePlaneNbVid();
 	}
diff --git a/src/cpu/amd/family_10h-family_15h/model_10xxx_init.c b/src/cpu/amd/family_10h-family_15h/model_10xxx_init.c
index 361a866..1e2a467 100644
--- a/src/cpu/amd/family_10h-family_15h/model_10xxx_init.c
+++ b/src/cpu/amd/family_10h-family_15h/model_10xxx_init.c
@@ -92,10 +92,10 @@
 		disable_cache();
 
 		for (i = 0x2; i < 0x10; i++) {
- 			wrmsr(0x00000200 | i, msr);
- 		}
+			wrmsr(0x00000200 | i, msr);
+		}
 
- 		enable_cache();
+		enable_cache();
 
 		/* Set up other MTRRs */
 		amd_setup_mtrrs();

-- 
To view, visit https://review.coreboot.org/20729
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iabdaaaee49e8c5cead304cda66412aa36a2ffd19
Gerrit-Change-Number: 20729
Gerrit-PatchSet: 1
Gerrit-Owner: Martin Roth <martinroth at google.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20170724/25a576f0/attachment.html>


More information about the coreboot-gerrit mailing list