kernel/sched: Correct coherence assert
Some legacy spots in our IPC layer (legally) pass a NULL wait queue to pend(). Allow this in the coherence assertion. Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
This commit is contained in:
parent
4dc6a0b89b
commit
1ba7414029
1 changed files with 1 additions and 1 deletions
|
@ -674,7 +674,7 @@ static void pend(struct k_thread *thread, _wait_q_t *wait_q,
|
||||||
k_timeout_t timeout)
|
k_timeout_t timeout)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_KERNEL_COHERENCE
|
#ifdef CONFIG_KERNEL_COHERENCE
|
||||||
__ASSERT_NO_MSG(arch_mem_coherent(wait_q));
|
__ASSERT_NO_MSG(wait_q == NULL || arch_mem_coherent(wait_q));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
LOCKED(&sched_spinlock) {
|
LOCKED(&sched_spinlock) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue