diff options
| author | Adam Hale <adam.samuel.hale@ibm.com> | 2017-08-13 23:21:21 -0500 |
|---|---|---|
| committer | Joshua Hunsberger <jahunsbe@us.ibm.com> | 2017-10-23 18:53:34 -0500 |
| commit | 494e5f8e6e0cfd826803f1b686aa6eaeefac2efc (patch) | |
| tree | b35bf1404a37b1252738f9f3200321b85b3e192d | |
| parent | 966b9eb55ece9a89b9a0fa54dd712db4289d6f73 (diff) | |
| download | talos-hcode-494e5f8e6e0cfd826803f1b686aa6eaeefac2efc.tar.gz talos-hcode-494e5f8e6e0cfd826803f1b686aa6eaeefac2efc.zip | |
reset aux task count
Change-Id: I41ce4f6c45f9c4087e62fc731ded59464fd70b5c
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/44574
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Michael S. Floyd <mfloyd@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: BRIAN D. VICTOR <brian.d.victor1@ibm.com>
Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
| -rw-r--r-- | import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe_fit.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe_fit.c b/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe_fit.c index b925d0ef..c7cdda6a 100644 --- a/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe_fit.c +++ b/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe_fit.c @@ -77,7 +77,12 @@ void p9_pgpe_fit_init() G_aux_task_count_threshold = (freq < 1573) ? 3 : (freq < 2097) ? 4 : (freq < 2621) ? 5 : 6; - G_aux_task_count_threshold *= G_pgpe_header_data->g_pgpe_aux_controls; + + if(G_pgpe_header_data->g_pgpe_aux_controls) //multiply by attribute if nonzero + { + G_aux_task_count_threshold *= G_pgpe_header_data->g_pgpe_aux_controls; + } + PK_TRACE_DBG("Fit AuxTaskThr=0x%d", G_aux_task_count_threshold); G_throttleOn = 0; @@ -222,6 +227,7 @@ __attribute__((always_inline)) inline void handle_aux_task() if(G_aux_task_count == G_aux_task_count_threshold) { (*p9_pgpe_auxiliary_task)(); + G_aux_task_count = 0; } else { |

