examples/vm_power: respect core mask
authorDavid Hunt <david.hunt@intel.com>
Fri, 15 Jan 2021 12:52:50 +0000 (12:52 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 28 Jan 2021 22:17:18 +0000 (23:17 +0100)
commitb49c677a0d2400a42cb03717cde02d4516ce6ead
tree5b1efed34f15e522757b83fb334025f0984259ca
parentc85ebb39dbdd1b2696860858a10230dee8162929
examples/vm_power: respect core mask

When vm_power_manager is started, it takes over power management on
all cores. This should be limited to cores defined in the core mask.

When initialising, if a core is not on the coremask, skip it.
Applies to both initialisation and exit.

Signed-off-by: David Hunt <david.hunt@intel.com>
examples/vm_power_manager/channel_manager.c
examples/vm_power_manager/power_manager.c