From: Oleksij Rempel Date: Tue, 15 Mar 2022 19:38:54 +0000 (-0400) Subject: counter: add new COUNTER_EVENT_CHANGE_OF_STATE X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=73799a889262b4675799bec20a2765be6d6a3f98;p=linux.git counter: add new COUNTER_EVENT_CHANGE_OF_STATE Add new counter event to notify user space about every new counter pulse. Link: https://lore.kernel.org/r/20220203135727.2374052-2-o.rempel@pengutronix.de Signed-off-by: Oleksij Rempel Signed-off-by: William Breathitt Gray Link: https://lore.kernel.org/r/486a5de67414470449efb84d06a2f2214f4bb31d.1647373009.git.vilhelm.gray@gmail.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/include/uapi/linux/counter.h b/include/uapi/linux/counter.h index d0aa95aeff7be..96c5ffd368adc 100644 --- a/include/uapi/linux/counter.h +++ b/include/uapi/linux/counter.h @@ -61,6 +61,8 @@ enum counter_event_type { COUNTER_EVENT_THRESHOLD, /* Index signal detected */ COUNTER_EVENT_INDEX, + /* State of counter is changed */ + COUNTER_EVENT_CHANGE_OF_STATE, }; /**