firmware: arm_scmi: add option for polling based performance domain operations
authorSudeep Holla <sudeep.holla@arm.com>
Fri, 21 Jul 2017 10:42:24 +0000 (11:42 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Wed, 28 Feb 2018 16:37:57 +0000 (16:37 +0000)
commit5c4ba3cc85296398855d621bf90b78866ea80444
tree327682b15c2d4d18659b4215efa5781b0a767f96
parentd4c3751a8de2deeaae546b97650f895b62bbd1b4
firmware: arm_scmi: add option for polling based performance domain operations

In order to implement fast CPU DVFS switching, we need to perform all
DVFS operations atomically. Since SCMI transfer already provide option
to choose between pooling vs interrupt driven(default), we can opt for
polling based transfers for set,get performance domain operations.

This patch adds option to choose between polling vs interrupt driven
SCMI transfers for set,get performance level operations.

Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/perf.c
include/linux/scmi_protocol.h