summaryrefslogtreecommitdiffstats
path: root/src/usr/hwpf/hwp/pstates
diff options
context:
space:
mode:
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