summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe_fit.c8
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
{
OpenPOWER on IntegriCloud