git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
power: handle frequency increase with turbo disabled
[dpdk.git]
/
lib
/
librte_power
/
power_acpi_cpufreq.c
diff --git
a/lib/librte_power/power_acpi_cpufreq.c
b/lib/librte_power/power_acpi_cpufreq.c
index
2298924
..
f443fce
100644
(file)
--- a/
lib/librte_power/power_acpi_cpufreq.c
+++ b/
lib/librte_power/power_acpi_cpufreq.c
@@
-515,7
+515,8
@@
power_acpi_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. */