[PATCH v2 2/4] counter: add direction change event
From: David Lechner
Date: Fri Jan 10 2025 - 19:23:26 EST
Add COUNTER_EVENT_DIRECTION_CHANGE to be used by drivers to emit events
when a counter detects a change in direction.
Signed-off-by: David Lechner <dlechner@xxxxxxxxxxxx>
---
include/uapi/linux/counter.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/uapi/linux/counter.h b/include/uapi/linux/counter.h
index 008a691c254bdb49b9c922d7591e755e82b38a84..350b45d616bb102c16f8b60e9039272db20d1be9 100644
--- a/include/uapi/linux/counter.h
+++ b/include/uapi/linux/counter.h
@@ -65,6 +65,8 @@ enum counter_event_type {
COUNTER_EVENT_CHANGE_OF_STATE,
/* Count value captured */
COUNTER_EVENT_CAPTURE,
+ /* Direction change detected */
+ COUNTER_EVENT_DIRECTION_CHANGE,
};
/**
--
2.43.0