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:
Peter Bigot 2019-10-06 14:01:08 -05:00 committed by Anas Nashif
commit f0c0b3b5dc

View file

@ -28,6 +28,7 @@ identifier last_timeout =~ "(?x)^k_
| poll
| queue_get
| sem_take
| sleep
| stack_pop
| timer_start
| work_poll_submit(|_to_queue)