firmware: arm_scmi: Populate perf commands rate_limit
[linux-2.6-microblaze.git] / include / linux / scmi_protocol.h
index f2f05fb..acd956f 100644 (file)
@@ -128,6 +128,8 @@ struct scmi_perf_domain_info {
  * @level_set: sets the performance level of a domain
  * @level_get: gets the performance level of a domain
  * @transition_latency_get: gets the DVFS transition latency for a given device
+ * @rate_limit_get: gets the minimum time (us) required between successive
+ *     requests
  * @device_opps_add: adds all the OPPs for a given device
  * @freq_set: sets the frequency for a given device using sustained frequency
  *     to sustained performance level mapping
@@ -154,6 +156,8 @@ struct scmi_perf_proto_ops {
                         u32 *level, bool poll);
        int (*transition_latency_get)(const struct scmi_protocol_handle *ph,
                                      u32 domain);
+       int (*rate_limit_get)(const struct scmi_protocol_handle *ph,
+                             u32 domain, u32 *rate_limit);
        int (*device_opps_add)(const struct scmi_protocol_handle *ph,
                               struct device *dev, u32 domain);
        int (*freq_set)(const struct scmi_protocol_handle *ph, u32 domain,