coccinelle: standardize k_thread create/define calls with integer timeouts

Re-run with updated script to convert integer literal delay arguments
to k_thread_create and K_THREAD_DEFINE to use the standard timeout
macros.

Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
Peter Bigot 2019-10-06 14:59:16 -05:00 committed by Anas Nashif
commit e28f330a8e
86 changed files with 201 additions and 180 deletions

View file

@ -283,7 +283,8 @@ static int run_test(struct unit_test *test)
K_THREAD_STACK_SIZEOF(ztest_thread_stack),
(k_thread_entry_t) test_cb, (struct unit_test *)test,
NULL, NULL, CONFIG_ZTEST_THREAD_PRIORITY,
test->thread_options | K_INHERIT_PERMS, 0);
test->thread_options | K_INHERIT_PERMS,
K_NO_WAIT);
/*
* There is an implicit expectation here that the thread that was
* spawned is still higher priority than the current thread.