examples/vm_power: make branch ratio configurable
authorDavid Hunt <david.hunt@intel.com>
Fri, 13 Jul 2018 14:23:02 +0000 (15:23 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 20 Jul 2018 22:00:43 +0000 (00:00 +0200)
commit711f43ba568acadf6cbccb9f8a29abf0fb3baa25
treeaaff58f4dac8274089f33ee15f57bd24cbc10509
parent59287933a0bb7101cdf9df8ba5dba0ae944e1ee3
examples/vm_power: make branch ratio configurable

For different workloads and poll loops, the theshold
may be different for when you want to scale up and down.

This patch allows changing of the default branch ratio
by using the -b command line argument (or --branch-ratio=)

Signed-off-by: David Hunt <david.hunt@intel.com>
Acked-by: Radu Nicolau <radu.nicolau@intel.com>
examples/vm_power_manager/main.c
examples/vm_power_manager/oob_monitor_x86.c
examples/vm_power_manager/power_manager.c
examples/vm_power_manager/power_manager.h