]> git.droids-corp.org - dpdk.git/blobdiff - examples/vm_power_manager/oob_monitor_x86.c
examples/vm_power: make branch ratio threshold per core
[dpdk.git] / examples / vm_power_manager / oob_monitor_x86.c
index aecfcb2ebf8a8151921353dc989a302bbc760991..3c514475f17c8163900ecce7f4fd5b16b875cdfc 100644 (file)
@@ -109,7 +109,7 @@ apply_policy(int core)
         * down. Each core_details struct has it's own array.
         */
        freq_window_idx = ci->cd[core].freq_window_idx;
-       if (ratio > ci->branch_ratio_threshold)
+       if (ratio > ci->cd[core].branch_ratio_threshold)
                ci->cd[core].freq_directions[freq_window_idx] = 1;
        else
                ci->cd[core].freq_directions[freq_window_idx] = 0;