From 494e5f8e6e0cfd826803f1b686aa6eaeefac2efc Mon Sep 17 00:00:00 2001 From: Adam Hale Date: Sun, 13 Aug 2017 23:21:21 -0500 Subject: reset aux task count Change-Id: I41ce4f6c45f9c4087e62fc731ded59464fd70b5c Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/44574 Tested-by: FSP CI Jenkins Reviewed-by: Michael S. Floyd Tested-by: Jenkins Server Reviewed-by: BRIAN D. VICTOR Reviewed-by: Gregory S. Still --- .../chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe_fit.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 { -- cgit v1.2.3