| 672 | } |
| 673 | |
| 674 | static int |
| 675 | init_power_library(void) |
| 676 | { |
| 677 | int ret = 0, lcore_id; |
| 678 | RTE_LCORE_FOREACH_WORKER(lcore_id) { |
| 679 | /* init power management library */ |
| 680 | ret = rte_power_init(lcore_id); |
| 681 | if (ret) { |
| 682 | RTE_LOG(ERR, POWER, |
| 683 | "Library initialization failed on core %u\n", |
| 684 | lcore_id); |
| 685 | /* |
| 686 | * Return on first failure, we'll fall back |
| 687 | * to non-power operation |
| 688 | */ |
| 689 | return ret; |
| 690 | } |
| 691 | } |
| 692 | return ret; |
| 693 | } |
| 694 | |
| 695 | /* display usage */ |
| 696 | static void |
no test coverage detected