power: add bit for high frequency cores
authorDavid Hunt <david.hunt@intel.com>
Mon, 1 Apr 2019 16:14:40 +0000 (17:14 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 2 Apr 2019 00:22:08 +0000 (02:22 +0200)
commitb60fd5f8b1ce8f0a2cf6ceb1e690c07977660bd0
tree23df1175c17012afa8ccf9feb4dc0b9d0560040c
parent08a710642d1d8bed831ecf2085e041213381fc68
power: add bit for high frequency cores

This patch adds a new bit in the capabilities mask that's returned by
rte_power_get_capabilities(), allowing application to query which cores
have the higher frequencies, and can then pin the workloads accordingly.

Returned Bits:
 0 - Turbo Boost enabled
 1 - Higher core base_frequency

Signed-off-by: Liang Ma <liang.j.ma@intel.com>
Signed-off-by: David Hunt <david.hunt@intel.com>
Reviewed-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_power/power_pstate_cpufreq.c
lib/librte_power/rte_power.h