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;
}
on value='30'>30space:mode:
authorChristoph Hellwig <hch@lst.de>2016-04-06 09:47:01 +1000
committerDave Chinner <david@fromorbit.com>2016-04-06 09:47:01 +1000
commit664b60f6babc98ee03c2ff15b9482cc8c5e15a83 (patch)
tree195d42b776a4e311a912147722aa516e9e6d9048 /Documentation/devicetree/bindings/ufs
parent9f27889f3a96ff356ac92688cc0c4be3935ae3af (diff)
xfs: improve kmem_realloc
Use krealloc to implement our realloc function. This helps to avoid new allocations if we are still in the slab bucket. At least for the bmap btree root that's actually the common case. This also allows removing the now unused oldsize argument. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Brian Foster <bfoster@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'Documentation/devicetree/bindings/ufs')