Skip to content

Commit f0c0b3b

Browse files
pabigotnashif
authored andcommitted
scripts/coccinelle: add sleep to int literal to timeout standardization
k_sleep uses the same underlying thread infrastructure as the other functions that take timeouts, so the delay should be specified as a timeout rather than milliseconds. Signed-off-by: Peter Bigot <[email protected]>
1 parent 3423d8b commit f0c0b3b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/coccinelle/int_literal_to_timeout.cocci

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ identifier last_timeout =~ "(?x)^k_
2828
| poll
2929
| queue_get
3030
| sem_take
31+
| sleep
3132
| stack_pop
3233
| timer_start
3334
| work_poll_submit(|_to_queue)

0 commit comments

Comments
 (0)