]> git.karo-electronics.de Git - karo-tx-linux.git/commit
pps : add non blocking option to PPS_FETCH ioctl.
authorPaul Chavent <Paul.Chavent@onera.fr>
Fri, 3 Jan 2014 03:10:35 +0000 (14:10 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 3 Jan 2014 03:10:35 +0000 (14:10 +1100)
commit15d1571cd5330e5a84f0aba0f29ddf13638e2566
treef591e70643a2dd318867052a16532e67f338b126
parenteabacb53c341b2044305c2de50bd69041db1793a
pps : add non blocking option to PPS_FETCH ioctl.

The PPS_FETCH ioctl is blocking still the reception of a PPS event.  But,
in some case, one may immediately need the last event date.  This patch
allow to get the result of PPS_FETCH if the device has the O_NONBLOCK flag
set.

Signed-off-by: Paul Chavent <paul.chavent@onera.fr>
Acked-by: Rodolfo Giometti <giometti@enneenne.com>
Cc: Alexander Gordeev <agordeev@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/pps/pps.c