]> www.infradead.org Git - users/jedix/linux-maple.git/commit
counter: Introduce the compare component
authorWilliam Breathitt Gray <wbg@kernel.org>
Thu, 6 Mar 2025 07:05:43 +0000 (16:05 +0900)
committerWilliam Breathitt Gray <wbg@kernel.org>
Mon, 10 Mar 2025 09:00:49 +0000 (18:00 +0900)
commitb5198201932635e19068cc2e83a99adf38f32c43
treeb3d1c8cf3255e4d9fa49f711424b1585676e8b23
parent1adc6240a80278c613f655b71c6c0d447b2d5932
counter: Introduce the compare component

Compare registers are used in devices to compare a counter channel
against a particular count value (e.g. to check if a threshold has been
reached). A macro COUNTER_COMP_COMPARE() is introduced to facilitate the
creation of compare components as Count extensions.

Link: https://lore.kernel.org/r/20250306-introduce-compare-component-v1-1-93993b3dca9c@kernel.org
Signed-off-by: William Breathitt Gray <wbg@kernel.org>
Documentation/ABI/testing/sysfs-bus-counter
include/linux/counter.h