kernel: make z_is_idle_thread_entry take code ptr

This is causing errors on IAR toolchain.

Signed-off-by: Robin Kastberg <robin.kastberg@iar.com>
This commit is contained in:
Robin Kastberg 2024-11-14 19:28:28 +01:00 committed by Anas Nashif
commit 6532c2f0bb

View file

@ -225,7 +225,7 @@ static ALWAYS_INLINE bool should_preempt(struct k_thread *thread,
} }
static inline bool z_is_idle_thread_entry(void *entry_point) static inline bool z_is_idle_thread_entry(k_thread_entry_t entry_point)
{ {
return entry_point == idle; return entry_point == idle;
} }