]> git.droids-corp.org - dpdk.git/blobdiff - examples/vm_power_manager/power_manager.c
eal: add bus pointer in device structure
[dpdk.git] / examples / vm_power_manager / power_manager.c
index 4bdde23daf1a37ec2be624554b054c6d52a4eae0..b7769c3c329945185708690f3b8d5da271dc8c5d 100644 (file)
@@ -74,6 +74,7 @@ core_info_init(void)
        ci = get_core_info();
 
        ci->core_count = get_nprocs_conf();
+       ci->branch_ratio_threshold = BRANCH_RATIO_THRESHOLD;
        ci->cd = malloc(ci->core_count * sizeof(struct core_details));
        if (!ci->cd) {
                RTE_LOG(ERR, POWER_MANAGER, "Failed to allocate memory for core info.");