- if (thread->depress_priority >= 0) {
- thread->priority = thread->depress_priority;
- thread->depress_priority = -1;
- compute_priority(thread, TRUE);
- }
- else
- if (thread->depress_priority == -2) {
- /*
- * Thread was temporarily undepressed by thread_suspend, to
- * be redepressed in special_handler as it blocks. We need to
- * prevent special_handler from redepressing it, since depression
- * has timed out:
- */
- thread->depress_priority = -1;
- }
- thread->sched_mode &= ~TH_MODE_POLLDEPRESS;
+ thread->sched_mode &= ~TH_MODE_ISDEPRESSED;
+ compute_priority(thread, FALSE);