summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--import/chips/p9/procedures/hwp/lib/p9_pstates_pgpe.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/import/chips/p9/procedures/hwp/lib/p9_pstates_pgpe.h b/import/chips/p9/procedures/hwp/lib/p9_pstates_pgpe.h
index f62e9f2b..b4b61021 100644
--- a/import/chips/p9/procedures/hwp/lib/p9_pstates_pgpe.h
+++ b/import/chips/p9/procedures/hwp/lib/p9_pstates_pgpe.h
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HCODE Project */
/* */
-/* COPYRIGHT 2015,2017 */
+/* COPYRIGHT 2015,2018 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -55,6 +55,26 @@ extern "C" {
#include <stdint.h>
+/// Pad repurpose structure
+typedef union
+{
+ uint32_t value;
+ struct
+ {
+ // Reserve 3 bytes
+ uint16_t reserved16;
+ uint8_t reserved8;
+
+ // The following is used by PGPE for the WOF algorithm that computes
+ // vratio. The placement here is, frankly, a bit of a hack but is
+ // done to allievate cross-platform dependencies by not changing the
+ // overall size of the Global Paramter Block structure. In the future,
+ // this field should be moved into the base Global Paramter Block
+ // structure.
+ uint8_t good_cores_in_sort;
+ } fields;
+} GPPBOptionsPadUse;
+
/// Standard options controlling Pstate setup and installation procedures
typedef struct
{
OpenPOWER on IntegriCloud