[v4,04/27] librte_power: change reference to rte_master_lcore
diff mbox series

Message ID 20200701202359.17006-5-stephen@networkplumber.org
State Deferred
Delegated to: Thomas Monjalon
Headers show
Series
  • Replace references to master and slave
Related show

Checks

Context Check Description
ci/Intel-compilation fail Compilation issues
ci/checkpatch success coding style OK

Commit Message

Stephen Hemminger July 1, 2020, 8:23 p.m. UTC
New API name is rte_get_initial_lcore()

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 lib/librte_power/rte_power_empty_poll.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Burakov, Anatoly July 13, 2020, 12:37 p.m. UTC | #1
On 01-Jul-20 9:23 PM, Stephen Hemminger wrote:
> New API name is rte_get_initial_lcore()
> 
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
> ---
>   lib/librte_power/rte_power_empty_poll.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/librte_power/rte_power_empty_poll.c b/lib/librte_power/rte_power_empty_poll.c
> index 70c07b1533f3..d54a09b9d6a4 100644
> --- a/lib/librte_power/rte_power_empty_poll.c
> +++ b/lib/librte_power/rte_power_empty_poll.c
> @@ -452,7 +452,7 @@ rte_power_empty_poll_stat_init(struct ep_params **eptr, uint8_t *freq_tlb,
>   		if (get_freq_index(LOW) > total_avail_freqs[i])
>   			return -1;
>   
> -		if (rte_get_master_lcore() != i) {
> +		if (rte_get_initial_lcore() != i) {
>   			w->wrk_stats[i].lcore_id = i;
>   			set_policy(&w->wrk_stats[i], policy);
>   		}
> 

Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>

Patch
diff mbox series

diff --git a/lib/librte_power/rte_power_empty_poll.c b/lib/librte_power/rte_power_empty_poll.c
index 70c07b1533f3..d54a09b9d6a4 100644
--- a/lib/librte_power/rte_power_empty_poll.c
+++ b/lib/librte_power/rte_power_empty_poll.c
@@ -452,7 +452,7 @@  rte_power_empty_poll_stat_init(struct ep_params **eptr, uint8_t *freq_tlb,
 		if (get_freq_index(LOW) > total_avail_freqs[i])
 			return -1;
 
-		if (rte_get_master_lcore() != i) {
+		if (rte_get_initial_lcore() != i) {
 			w->wrk_stats[i].lcore_id = i;
 			set_policy(&w->wrk_stats[i], policy);
 		}