#include #include "timer.h" void set_itimer_interval_value(struct itimerval *itimer, unsigned long sec, unsigned long usec) { itimer->it_interval.tv_sec = sec; itimer->it_interval.tv_usec = usec; itimer->it_value.tv_sec = sec; itimer->it_value.tv_usec = usec; } tle='Atom feed' href='https://git.distanz.ch/cgit.cgi/linux/net-next.git/atom/drivers/staging?h=nds-private-remove' type='application/atom+xml'/>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>2016-08-02 13:18:28 +0100
committerGreg Kroah-Hartman <gregkh@google.com>2016-08-03 10:59:13 +0200
commit5cb74976b9025b1a5e6e3bfd15fde0afbaf98ae4 (patch)
tree8f986e65b40192a174178b73f21de3948582d49a /drivers/staging
parent7aa278b771505f8fb85406a891af0b7743710620 (diff)
greybus: timesync: Ensure parallel synchronous calls succeed
The guard for initiating a new synchronization operation should allow for that resync to happen in every single state except for INVALID. This patch fixes by ensuring the guard does just that. With local testing it was possible to break a sync to a Module. This hasn't been observed in a buglog but should be fixed anyway. Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Acked-by: David Lin <dtwlin@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging')