]> git.baikalelectronics.ru Git - kernel.git/commit
interconnect: Add sync state support
authorGeorgi Djakov <georgi.djakov@linaro.org>
Tue, 25 Aug 2020 17:01:51 +0000 (20:01 +0300)
committerGeorgi Djakov <georgi.djakov@linaro.org>
Fri, 18 Sep 2020 05:56:52 +0000 (08:56 +0300)
commita26d1e68ff0a4036b4075b32dae89d4f6aba9d73
tree8c82999b36d2c99a0dc601556bcc2b48ebc9f0fd
parentc8b3ddb91cff497c2358f0ac99795d922da5e77c
interconnect: Add sync state support

The bootloaders often do some initial configuration of the interconnects
in the system and we want to keep this configuration until all consumers
have probed and expressed their bandwidth needs. This is because we don't
want to change the configuration by starting to disable unused paths until
every user had a chance to request the amount of bandwidth it needs.

To accomplish this we will implement an interconnect specific sync_state
callback which will synchronize (aggregate and set) the current bandwidth
settings when all consumers have been probed.

Link: https://lore.kernel.org/r/20200825170152.6434-3-georgi.djakov@linaro.org
Reviewed-by: Saravana Kannan <saravanak@google.com>
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
drivers/interconnect/core.c
include/linux/interconnect-provider.h