[03/15] rte_power: replace rte_master_lcore with rte_main_lcore
diff mbox series

Message ID 20200911190701.29171-4-stephen@networkplumber.org
State Superseded, archived
Headers show
Series
  • Replace terms master/slave lcore with main/worker lcore
Related show

Checks

Context Check Description
ci/checkpatch warning coding style issues

Commit Message

Stephen Hemminger Sept. 11, 2020, 7:06 p.m. UTC
Don't use old function.

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 Sept. 14, 2020, 2:41 p.m. UTC | #1
On 11-Sep-20 8:06 PM, Stephen Hemminger wrote:
> Don't use old function.
> 
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
> ---

Perhaps a more informative commit message would be useful? E.g. "The old 
function was deprecated, so use the new one"? Otherwise,

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..975aa9299799 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_main_lcore() != i) {
 			w->wrk_stats[i].lcore_id = i;
 			set_policy(&w->wrk_stats[i], policy);
 		}