Lines Matching +full:clock +full:- +full:accuracy
1 .. SPDX-License-Identifier: GPL-2.0
17 .. list-table::
19 :header-rows: 2
21 * -
22 - `*delay()`
23 - `usleep_range*()`
24 - `*sleep()`
25 - `fsleep()`
26 * -
27 - busy-wait loop
28 - hrtimers based
29 - timer list timers based
30 - combines the others
31 * - Usage in atomic Context
32 - yes
33 - no
34 - no
35 - no
36 * - precise on "short intervals"
37 - yes
38 - yes
39 - depends
40 - yes
41 * - precise on "long intervals"
42 - Do not use!
43 - yes
44 - max 12.5% slack
45 - yes
46 * - interruptible variant
47 - no
48 - yes
49 - yes
50 - no
57 #. Use `usleep_range*()` whenever accuracy of `*sleep()` is not sufficient
64 ------------------------------
66 These functions use the jiffy estimation of clock speed and will busy wait for
74 .. kernel-doc:: include/asm-generic/delay.h
77 .. kernel-doc:: include/linux/delay.h
82 ----------------------------------------------------
88 #. hrtimers are more expensive as they are using an rb-tree (instead of hashing)
98 #. Use `usleep_range*()` whenever accuracy of `*sleep()` is not sufficient
100 First check fsleep() function description and to learn more about accuracy,
107 .. kernel-doc:: include/linux/delay.h
110 .. kernel-doc:: kernel/time/sleep_timeout.c
117 .. kernel-doc:: kernel/time/sleep_timeout.c
120 .. kernel-doc:: include/linux/delay.h