summaryrefslogtreecommitdiff
path: root/lib/librte_power/power_pstate_cpufreq.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/librte_power/power_pstate_cpufreq.c')
-rw-r--r--lib/librte_power/power_pstate_cpufreq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/librte_power/power_pstate_cpufreq.c b/lib/librte_power/power_pstate_cpufreq.c
index 8f095e0..2d8a949 100644
--- a/lib/librte_power/power_pstate_cpufreq.c
+++ b/lib/librte_power/power_pstate_cpufreq.c
@@ -696,7 +696,8 @@ power_pstate_cpufreq_freq_up(unsigned int lcore_id)
}
pi = &lcore_power_info[lcore_id];
- if (pi->curr_idx == 0)
+ if (pi->curr_idx == 0 ||
+ (pi->curr_idx == 1 && pi->turbo_available && !pi->turbo_enable))
return 0;
/* Frequencies in the array are from high to low. */