summaryrefslogtreecommitdiffstats
path: root/src/usr/hwpf/hwp/pstates
diff options
context:
space:
mode:
authorMatt Ploetz <maploetz@us.ibm.com>2014-03-19 08:38:03 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-04-02 17:17:17 -0500
commit5f089a9dfd51c9318996a143f436e12b96d025c9 (patch)
tree9fb71ea52bf8ffbd332af495a183b7c1b58ec9ef /src/usr/hwpf/hwp/pstates
parentec7743b1c59b7e7deae7ec5a2a2c17325c51185e (diff)
downloadtalos-hostboot-5f089a9dfd51c9318996a143f436e12b96d025c9.tar.gz
talos-hostboot-5f089a9dfd51c9318996a143f436e12b96d025c9.zip
INITPROC: Hostboot - SW249688 RAS misc 1
Change-Id: Ie85a55f5684f414e44db6b403cdc12ae7768ef4a CQ:SW249688 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/9734 Tested-by: Jenkins Server Reviewed-by: STEPHEN M. CPREK <smcprek@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf/hwp/pstates')
-rwxr-xr-xsrc/usr/hwpf/hwp/pstates/pstates/lab_pstates.c6
-rwxr-xr-xsrc/usr/hwpf/hwp/pstates/pstates/pstates.c16
2 files changed, 6 insertions, 16 deletions
diff --git a/src/usr/hwpf/hwp/pstates/pstates/lab_pstates.c b/src/usr/hwpf/hwp/pstates/pstates/lab_pstates.c
index fe545b7a5..5c1f442d6 100755
--- a/src/usr/hwpf/hwp/pstates/pstates/lab_pstates.c
+++ b/src/usr/hwpf/hwp/pstates/pstates/lab_pstates.c
@@ -5,7 +5,7 @@
/* */
/* IBM CONFIDENTIAL */
/* */
-/* COPYRIGHT International Business Machines Corp. 2013 */
+/* COPYRIGHT International Business Machines Corp. 2013,2014 */
/* */
/* p1 */
/* */
@@ -20,7 +20,7 @@
/* Origin: 30 */
/* */
/* IBM_PROLOG_END_TAG */
-// $Id: lab_pstates.c,v 1.8 2013/08/13 17:12:54 jimyac Exp $
+// $Id: lab_pstates.c,v 1.9 2014/02/21 03:02:20 jmcgill Exp $
/// \file lab_pstates.c
/// \brief Lab-only (as opposed to product-procedure) support for Pstates.
@@ -538,7 +538,7 @@ cpmrange_print(FILE* stream, CpmPstateModeRanges* cpmrange)
fprintf(stream, "Valid Number of CPM Pstate Ranges : %u\n",
cpmrange->validRanges);
- for (i == 0; i < 8; i++) {
+ for (i = 0; i < 8; i++) {
fprintf(stream, " CPM Range %d Pstate : %d\n",
i, cpmrange->inflectionPoint[i]);
}
diff --git a/src/usr/hwpf/hwp/pstates/pstates/pstates.c b/src/usr/hwpf/hwp/pstates/pstates/pstates.c
index 8ef039c56..d14d45d76 100755
--- a/src/usr/hwpf/hwp/pstates/pstates/pstates.c
+++ b/src/usr/hwpf/hwp/pstates/pstates/pstates.c
@@ -5,7 +5,7 @@
/* */
/* IBM CONFIDENTIAL */
/* */
-/* COPYRIGHT International Business Machines Corp. 2013 */
+/* COPYRIGHT International Business Machines Corp. 2013,2014 */
/* */
/* p1 */
/* */
@@ -20,7 +20,7 @@
/* Origin: 30 */
/* */
/* IBM_PROLOG_END_TAG */
-// $Id: pstates.c,v 1.6 2013/09/17 16:36:39 jimyac Exp $
+// $Id: pstates.c,v 1.7 2014/02/18 16:07:35 jimyac Exp $
/// \file pstates.c
/// \brief Pstate routines required by OCC product firmware
@@ -237,10 +237,6 @@ gpst_entry(const GlobalPstateTable *gpst,
int rc, index;
Pstate biased_pstate;
-// jwy if (SSX_ERROR_CHECK_API) {
-// jwy SSX_ERROR_IF(gpst == 0, GPST_INVALID_OBJECT);
-// jwy }
-
if (gpst == 0) {
return -GPST_INVALID_OBJECT;
}
@@ -327,11 +323,7 @@ gpst_vdd2pstate(const GlobalPstateTable* gpst,
size_t i;
int rc;
gpst_entry_t entry_rev; // jwy
-
-
-// jwy if (SSX_ERROR_CHECK_API) {
-// jwy SSX_ERROR_IF(gpst == 0, GPST_INVALID_OBJECT);
-// jwy }
+
if (gpst == 0) {
return -GPST_INVALID_OBJECT;
@@ -347,7 +339,6 @@ gpst_vdd2pstate(const GlobalPstateTable* gpst,
for (i = 0; i < gpst->entries; i++) {
entry_rev.value = revle64(gpst->pstate[i].value); // jwy
-// jwy if (gpst->pstate[i].fields.evid_vdd <= vdd) {
if (entry_rev.fields.evid_vdd <= vdd) { // jwy
break;
}
@@ -359,7 +350,6 @@ gpst_vdd2pstate(const GlobalPstateTable* gpst,
*entry = gpst->pstate[i - 1];
rc = -GPST_PSTATE_CLIPPED_HIGH;
-// jwy } else if ((i == 0) && (gpst->pstate[i].fields.evid_vdd < vdd)) {
} else if ((i == 0) && (entry_rev.fields.evid_vdd < vdd)) {
*pstate = gpst_pmin(gpst);
OpenPOWER on IntegriCloud