diff options
author | Chris Cain <cjcain@us.ibm.com> | 2015-11-06 00:01:11 -0600 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2015-11-16 12:25:38 -0600 |
commit | fc7293d210b0293d18abc66cbd719d1b5ac4d820 (patch) | |
tree | 0185ce01554d85e6e7ee3fea908324cac168da22 /src/usr/htmgt/htmgt_cfgdata.H | |
parent | e50f3717c6b44309a1523acf489ac0c6baee89e2 (diff) | |
download | talos-hostboot-fc7293d210b0293d18abc66cbd719d1b5ac4d820.tar.gz talos-hostboot-fc7293d210b0293d18abc66cbd719d1b5ac4d820.zip |
Prevent customer power cap truncation on HPC systems.
Change-Id: I23990356887d162b7959b20307a36d58b3db4c32
CQ:SW328005
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/21803
Tested-by: Jenkins Server
Tested-by: Jenkins OP Build CI
Tested-by: Jenkins OP HW
Reviewed-by: SHELDON R. BAILEY <baileysh@us.ibm.com>
Reviewed-by: Martha Broyles <mbroyles@us.ibm.com>
Tested-by: FSP CI Jenkins
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/htmgt/htmgt_cfgdata.H')
-rw-r--r-- | src/usr/htmgt/htmgt_cfgdata.H | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/usr/htmgt/htmgt_cfgdata.H b/src/usr/htmgt/htmgt_cfgdata.H index 82bbe19c2..f5290bacf 100644 --- a/src/usr/htmgt/htmgt_cfgdata.H +++ b/src/usr/htmgt/htmgt_cfgdata.H @@ -165,6 +165,18 @@ namespace HTMGT /** + * Return the maximum power cap for the system. + * + * Value is read from the MRW based on the Current Power Supply + * Redundancy Policy sensor in the BMC + * + * @param[in] i_sys - pointer to system target + * @returns maximum power cap in watts + */ + uint16_t getMaxPowerCap(TARGETING::Target * i_sys); + + + /** * Fills in the Power Cap Configuration Data message buffer. * * @param[out] o_data - preallocated buffer to fill in |