summaryrefslogtreecommitdiffstats
path: root/src/usr/htmgt/htmgt.C
diff options
context:
space:
mode:
authorDoug Gilbert <dgilbert@us.ibm.com>2014-10-23 15:04:03 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-12-13 10:16:59 -0600
commit611d91a0295e17ea202f01e0143fc040820eadb8 (patch)
tree3c07fecbbdf0008f041a905733c43f32ca4df854 /src/usr/htmgt/htmgt.C
parent61c9acc8fd01eab34b942a284ac851bbd990d9f7 (diff)
downloadblackbird-hostboot-611d91a0295e17ea202f01e0143fc040820eadb8.tar.gz
blackbird-hostboot-611d91a0295e17ea202f01e0143fc040820eadb8.zip
HTMGT Pstate support
Change-Id: I68388d448afa027439c78f654c00ca2f9904d65e RTC: 114284 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/14191 Reviewed-by: Christopher Cain <cjcain@us.ibm.com> Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/htmgt/htmgt.C')
-rw-r--r--src/usr/htmgt/htmgt.C37
1 files changed, 26 insertions, 11 deletions
diff --git a/src/usr/htmgt/htmgt.C b/src/usr/htmgt/htmgt.C
index d693a52b0..5ed8be6c7 100644
--- a/src/usr/htmgt/htmgt.C
+++ b/src/usr/htmgt/htmgt.C
@@ -28,6 +28,9 @@
#include "htmgt_activate.H"
#include "htmgt_cfgdata.H"
#include "htmgt_utility.H"
+#ifndef __HOSTBOOT_RUNTIME
+#include "genPstate.H"
+#endif
// Targeting support
#include <targeting/common/commontargeting.H>
@@ -58,22 +61,34 @@ namespace HTMGT
// Query functional OCCs
if (occMgr::instance().buildOccs() > 0)
{
- // Build pstate tables
- // TODO RTC 114284
+ do
+ {
+ //Pstatetable only built once at boot time.
+#ifndef __HOSTBOOT_RUNTIME
+ l_err = genPstateTables();
+ if(l_err)
+ {
+ break;
+ }
+#endif
- // Calc memory throttles
- // TODO RTC 116306
+ // Calc memory throttles
+ // TODO RTC 116306
- // Send ALL config data
- sendOccConfigData();
+ // Send ALL config data
+ sendOccConfigData();
- // Wait for all OCCs to go active
- l_err = waitForOccsActive();
- if (NULL == l_err)
+ // Wait for all OCCs to go active
+ l_err = waitForOccsActive();
+ if( l_err )
{
- // Set active sensors for all OCCs so BMC can start comm
+ break;
+ }
+
+ //Set active sensors for all OCCs so BMC can start comm
l_err = setOccActiveSensors();
- }
+
+ } while(0);
}
else
{
OpenPOWER on IntegriCloud