kernel: sched: Fixed incorrect argument type of _reschedule()

This API shouldn't take a int type but instead it should take
u32_t. This argument has to be similar to irq_lock() and
irq_unlock().

Signed-off-by: Adithya Baglody <adithya.nagaraj.baglody@intel.com>
This commit is contained in:
Adithya Baglody 2018-10-11 14:52:56 +05:30 committed by Anas Nashif
commit 1424561252
2 changed files with 2 additions and 2 deletions

View file

@ -39,7 +39,7 @@ int _is_thread_time_slicing(struct k_thread *thread);
void _unpend_thread_no_timeout(struct k_thread *thread);
int _pend_current_thread(int key, _wait_q_t *wait_q, s32_t timeout);
void _pend_thread(struct k_thread *thread, _wait_q_t *wait_q, s32_t timeout);
void _reschedule(int key);
void _reschedule(u32_t key);
struct k_thread *_unpend_first_thread(_wait_q_t *wait_q);
void _unpend_thread(struct k_thread *thread);
int _unpend_all(_wait_q_t *wait_q);

View file

@ -430,7 +430,7 @@ void _thread_priority_set(struct k_thread *thread, int prio)
}
}
void _reschedule(int key)
void _reschedule(u32_t key)
{
#ifdef CONFIG_SMP
if (!_current_cpu->swap_ok) {