MCPcopy Create free account
hub / github.com/F-Stack/f-stack / init_power_library

Function init_power_library

dpdk/examples/distributor/main.c:674–693  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

672}
673
674static int
675init_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 */
696static void

Callers 1

mainFunction · 0.70

Calls 1

rte_power_initFunction · 0.85

Tested by

no test coverage detected