examples/power: fix policy handling for FIFO
authorDavid Hunt <david.hunt@intel.com>
Tue, 16 Jul 2019 11:11:12 +0000 (12:11 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 17 Jul 2019 20:53:38 +0000 (22:53 +0200)
commitabeef65dfdefbaedd14464dd07a8eb5f6a6ebacf
tree1f26820bcdfca665ce1c6f55da9cb983b9415cc9
parentb55d8fec46ce1f2a152f3687abb3222f675ce73e
examples/power: fix policy handling for FIFO

While the core frequency scale-up and scale down all works fine with the
fifo-per-core functionality, there was a gap for policy handling. When
creating or destroying a policy, the core associated with the FIFO
needs to be automatically added to the core list, so the policy is
associated with the correct core.

Fixes: 221e7026d521 ("examples/power: add FIFO per core for JSON interface")

Signed-off-by: David Hunt <david.hunt@intel.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
examples/vm_power_manager/channel_monitor.c