]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kern/thread_policy.c
xnu-344.tar.gz
[apple/xnu.git] / osfmk / kern / thread_policy.c
index e9eacf91b5588b1315d7ff92ff3021768f2369fe..d7e2c311ac28316e389583200ca9d4425a8846c7 100644 (file)
@@ -198,15 +198,7 @@ thread_recompute_priority(
                        priority = MINPRI;
        }
 
-       if (thread->depress_priority >= 0)
-               thread->depress_priority = priority;
-       else {
-               thread->priority = priority;
-               compute_priority(thread, TRUE);
-
-               if (thread == current_thread())
-                       ast_on(AST_BLOCK);
-       }
+       set_priority(thread, priority);
 }
 
 void