Skip to content
Commit 0d7769f3 authored by Wayne Ren's avatar Wayne Ren Committed by Andrew Boie
Browse files

arch: arc: fix the bug that idle thread blocks other threads



* for COOP_SCHED case, i.e., PREEMPT_ENABLED is not enabled, the
  idle thread will block other threads which is not correct.

* remove the check of PREEMPT_ENABLED in the epilogue of irq and
  exception handling. Let the scheduler (should_preempt()) decide
  whether the thread should be preempted.

Signed-off-by: default avatarWayne Ren <wei.ren@synopsys.com>
parent c6d37eba
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment