diff options
author | Matt Spinler <spinler@us.ibm.com> | 2014-10-22 10:32:01 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2014-12-13 10:16:26 -0600 |
commit | 61c9acc8fd01eab34b942a284ac851bbd990d9f7 (patch) | |
tree | 92c86f3f8e1ad6b3b5f5cf016ae8d8cfb61c88e2 /src/usr/htmgt/htmgt_memthrottles.H | |
parent | 5cdd71606bc1577f9cfe87b326190b84b9137dee (diff) | |
download | talos-hostboot-61c9acc8fd01eab34b942a284ac851bbd990d9f7.tar.gz talos-hostboot-61c9acc8fd01eab34b942a284ac851bbd990d9f7.zip |
HTMGT code to build several of the OCC config message payloads.
Includes an interface to run the hardware procedures related to memory
throttling, which will write attributes needed for an OCC config message.
Change-Id: I302e5c2f0e354dd57d6f6f9c8ad81095277a3d8c
RTC: 114286
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/14131
Reviewed-by: Christopher Cain <cjcain@us.ibm.com>
Tested-by: Jenkins Server
Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/htmgt/htmgt_memthrottles.H')
-rw-r--r-- | src/usr/htmgt/htmgt_memthrottles.H | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/usr/htmgt/htmgt_memthrottles.H b/src/usr/htmgt/htmgt_memthrottles.H new file mode 100644 index 000000000..7816da98f --- /dev/null +++ b/src/usr/htmgt/htmgt_memthrottles.H @@ -0,0 +1,42 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/usr/htmgt/htmgt_memthrottles.H $ */ +/* */ +/* OpenPOWER HostBoot Project */ +/* */ +/* Contributors Listed Below - COPYRIGHT 2014 */ +/* [+] International Business Machines Corp. */ +/* */ +/* */ +/* Licensed under the Apache License, Version 2.0 (the "License"); */ +/* you may not use this file except in compliance with the License. */ +/* You may obtain a copy of the License at */ +/* */ +/* http://www.apache.org/licenses/LICENSE-2.0 */ +/* */ +/* Unless required by applicable law or agreed to in writing, software */ +/* distributed under the License is distributed on an "AS IS" BASIS, */ +/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */ +/* implied. See the License for the specific language governing */ +/* permissions and limitations under the License. */ +/* */ +/* IBM_PROLOG_END_TAG */ +#ifndef HTMGT_MEMTHROTTLES_H +#define HTMGT_MEMTHROTTLES_H + + +namespace HTMGT +{ + + /** + * Calculates the memory throttling numerator values for the OT, + * oversubscription, and redundant power cases. The results are + * stored in attributes under the corresponding MBAs. + */ + void calcMemThrottles(); + + + +}; +#endif |