examples/power: add FIFO per core for JSON interface
authorMarcin Hajkowski <marcinx.hajkowski@intel.com>
Tue, 9 Jul 2019 15:21:30 +0000 (16:21 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 10 Jul 2019 21:55:07 +0000 (23:55 +0200)
commit221e7026d521c97c58fcee867f003e414dba2eea
tree048e8305b775bb068f888d16a27de562e8488324
parent8d244bb3a32ee54364f8c0a7b7244a67ad407091
examples/power: add FIFO per core for JSON interface

This patch implements a separate FIFO for each cpu core to improve the
previous functionality where anyone with access to the FIFO could affect
any core on the system. By using appropriate permissions, FIFO interfaces
can be configured to only affect the particular cores.

Because each FIFO is per core, the following fields have been removed
from the command JSON format: core_list, resource_id, name.

Signed-off-by: Lukasz Krakowiak <lukaszx.krakowiak@intel.com>
Signed-off-by: Lukasz Gosiewski <lukaszx.gosiewski@intel.com>
Signed-off-by: Marcin Hajkowski <marcinx.hajkowski@intel.com>
Tested-by: David Hunt <david.hunt@intel.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
doc/guides/sample_app_ug/vm_power_management.rst
examples/vm_power_manager/channel_manager.c
examples/vm_power_manager/channel_manager.h
examples/vm_power_manager/channel_monitor.c
examples/vm_power_manager/main.c