diff --git a/sched/wqueue/kwork_inherit.c b/sched/wqueue/kwork_inherit.c index ebd2eb72b267a..920fcc094c829 100644 --- a/sched/wqueue/kwork_inherit.c +++ b/sched/wqueue/kwork_inherit.c @@ -219,7 +219,6 @@ void lpwork_boostpriority(uint8_t reqprio) /* Prevent context switches until we get the priorities right */ flags = enter_critical_section(); - sched_lock(); /* Adjust the priority of every worker thread */ @@ -228,7 +227,6 @@ void lpwork_boostpriority(uint8_t reqprio) lpwork_boostworker(lpwork().worker[wndx].pid, reqprio); } - sched_unlock(); leave_critical_section(flags); } @@ -265,7 +263,6 @@ void lpwork_restorepriority(uint8_t reqprio) /* Prevent context switches until we get the priorities right */ flags = enter_critical_section(); - sched_lock(); /* Adjust the priority of every worker thread */ @@ -274,7 +271,6 @@ void lpwork_restorepriority(uint8_t reqprio) lpwork_restoreworker(lpwork().worker[wndx].pid, reqprio); } - sched_unlock(); leave_critical_section(flags); }