Skip to content
Snippets Groups Projects
user avatar
Rodolfo Giometti authored
PPS events must be recorded according to PPS's mode settings.

If a process asks for (i.e.) capture-assert events only, when the PPS
client calls the pps_event() function to save the current PPS event, we
should verify the event type and then discard unwanted ones.

Also, without this patch userland processes waiting for a specific PPS
event (assert or clear but not both) may be awakened at wrong time.

Signed-off-by: default avatarRodolfo Giometti <giometti@linux.it>
Tested-by: default avatarWilliam S. Brasher <billb958@door.net>
Tested-by: default avatarReg Clemens <clemens@dwf.com>
Cc: <stable@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
276b282e
History
Name Last commit Last update
..
Kconfig
Makefile
kapi.c
pps.c
sysfs.c