summaryrefslogtreecommitdiff
path: root/timer.c
blob: c25d5b201ea7a032c8344aff535d503df750e724 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <unistd.h>
#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;
}

int get_user_hz(void)
{
	return sysconf(_SC_CLK_TCK);
}
o.estevam@freescale.com>2013-11-21 12:48:32 -0200 committerMark Brown <broonie@linaro.org>2013-11-27 18:21:44 +0000 commit3f3002692ce8fa1e9b257183ea1a36baacfdcfcf (patch) tree0c4c21824181113b7e18a3ff2db48f1046a00e08 /sound/soc parent6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae (diff)
AsoC: wm9081: Use IS_ENABLED() macro
Using the IS_ENABLED() macro can make the code shorter and simpler. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc')