git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
crypto/octeontx: add global resource init
[dpdk.git]
/
examples
/
vm_power_manager
/
oob_monitor_x86.c
diff --git
a/examples/vm_power_manager/oob_monitor_x86.c
b/examples/vm_power_manager/oob_monitor_x86.c
index
62d503c
..
589c604
100644
(file)
--- a/
examples/vm_power_manager/oob_monitor_x86.c
+++ b/
examples/vm_power_manager/oob_monitor_x86.c
@@
-22,7
+22,6
@@
void branch_monitor_exit(void)
/* Number of microseconds between each poll */
#define INTERVAL 100
#define PRINT_LOOP_COUNT (1000000/INTERVAL)
/* Number of microseconds between each poll */
#define INTERVAL 100
#define PRINT_LOOP_COUNT (1000000/INTERVAL)
-#define RATIO_THRESHOLD 0.03
#define IA32_PERFEVTSEL0 0x186
#define IA32_PERFEVTSEL1 0x187
#define IA32_PERFCTR0 0xc1
#define IA32_PERFEVTSEL0 0x186
#define IA32_PERFEVTSEL1 0x187
#define IA32_PERFCTR0 0xc1
@@
-89,7
+88,7
@@
apply_policy(int core)
ratio = (float)miss_diff * (float)100 / (float)hits_diff;
ratio = (float)miss_diff * (float)100 / (float)hits_diff;
- if (ratio <
RATIO_THRESHOLD
)
+ if (ratio <
ci->branch_ratio_threshold
)
power_manager_scale_core_min(core);
else
power_manager_scale_core_max(core);
power_manager_scale_core_min(core);
else
power_manager_scale_core_max(core);