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 <peter.bigot@nordicsemi.no>
This commit is contained in:
parent
3423d8b2a4
commit
f0c0b3b5dc
1 changed files with 1 additions and 0 deletions
|
@ -28,6 +28,7 @@ identifier last_timeout =~ "(?x)^k_
|
|||
| poll
|
||||
| queue_get
|
||||
| sem_take
|
||||
| sleep
|
||||
| stack_pop
|
||||
| timer_start
|
||||
| work_poll_submit(|_to_queue)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue