[PATCH v4 1/2] firmware: arm_scmi: Add System Power utility macro
Cristian Marussi
cristian.marussi at arm.com
Tue Jan 5 08:09:44 EST 2021
Add a trivial macro to check the kind of SCMI SystemPower request.
Signed-off-by: Cristian Marussi <cristian.marussi at arm.com>
---
include/linux/scmi_protocol.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/linux/scmi_protocol.h b/include/linux/scmi_protocol.h
index ecb3aad1a964..a666a152d1eb 100644
--- a/include/linux/scmi_protocol.h
+++ b/include/linux/scmi_protocol.h
@@ -738,6 +738,7 @@ struct scmi_power_state_changed_report {
struct scmi_system_power_state_notifier_report {
ktime_t timestamp;
unsigned int agent_id;
+#define SCMI_SYSPOWER_IS_REQUEST_GRACEFUL(flags) ((flags) & BIT(0))
unsigned int flags;
unsigned int system_state;
};
--
2.17.1
More information about the linux-arm-kernel
mailing list