1ROUND_JIFFIES_RELATI(9) Driver Basics ROUND_JIFFIES_RELATI(9)
2
3
4
6 round_jiffies_relative - function to round jiffies to a full second
7
9 unsigned long round_jiffies_relative(unsigned long j);
10
12 j
13 the time in (relative) jiffies that should be rounded
14
16 round_jiffies_relative rounds a time delta in the future (in jiffies)
17 up or down to (approximately) full seconds. This is useful for timers
18 for which the exact time they fire does not matter too much, as long as
19 they fire approximately every X seconds.
20
21 By rounding these timers to whole seconds, all such timers will fire at
22 the same time, rather than at various times spread out. The goal of
23 this is to have the CPU wake up less, which saves power.
24
25 The return value is the rounded version of the j parameter.
26
28Kernel Hackers Manual 3.10 June 2019 ROUND_JIFFIES_RELATI(9)