summaryrefslogtreecommitdiff
path: root/timer.c
blob: 8941ab70fff5d2df1c796f172529c61062b23937 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <sys/time.h>

#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;
}
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-04-06 10:55:25 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-04-20 13:16:14 -0300
commit5ed470feb9a121582dbd455c72b133dc1a856a0a (patch)
tree2229f72ba54bc3950f5b7c94e3150f66fee48ee7
parente2c91d4d78ee3a69ad634bc7ef90688704baab9d (diff)
[media] media: Improve documentation for link_setup/link_modify
Those callbacks are called with the media_device.graph_mutex held. Add a note about that, as the code called by those notifiers should not be touching in the mutex. Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat