X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fvm_power_manager%2Fpower_manager.c;h=cd51d4741f6cc07a968935d4dcaf237a2f37ee70;hb=86035f97fea5fc45a314cc0dce637e514eb168cc;hp=9d4e587b0f99369fe5710ded2135753f607e93fa;hpb=3f1fc5f2cbc57ed719f9a1b24c8e450c5a95e8db;p=dpdk.git diff --git a/examples/vm_power_manager/power_manager.c b/examples/vm_power_manager/power_manager.c index 9d4e587b0f..cd51d4741f 100644 --- a/examples/vm_power_manager/power_manager.c +++ b/examples/vm_power_manager/power_manager.c @@ -6,7 +6,6 @@ #include #include #include -#include #include #include #include @@ -62,14 +61,13 @@ core_info_init(void) ci->core_count = get_nprocs_conf(); ci->branch_ratio_threshold = BRANCH_RATIO_THRESHOLD; ci->cd = malloc(ci->core_count * sizeof(struct core_details)); + memset(ci->cd, 0, ci->core_count * sizeof(struct core_details)); if (!ci->cd) { RTE_LOG(ERR, POWER_MANAGER, "Failed to allocate memory for core info."); return -1; } for (i = 0; i < ci->core_count; i++) { ci->cd[i].global_enabled_cpus = 1; - ci->cd[i].oob_enabled = 0; - ci->cd[i].msr_fd = 0; } printf("%d cores in system\n", ci->core_count); return 0;