kernel: centralize new thread priority check

This was being done inconsistently in arch_new_thread(), just
move to the core kernel.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2020-04-19 14:31:27 -07:00 committed by Anas Nashif
commit 1f6f977f05
8 changed files with 2 additions and 10 deletions

View file

@ -18,7 +18,6 @@ void arch_new_thread(struct k_thread *thread, k_thread_stack_t *stack,
{
void *switch_entry;
Z_ASSERT_VALID_PRIO(priority, entry);
z_new_thread_init(thread, Z_THREAD_STACK_BUFFER(stack), stack_size);
#if CONFIG_X86_STACK_PROTECTION