]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kern/priority.c
xnu-1486.2.11.tar.gz
[apple/xnu.git] / osfmk / kern / priority.c
index 6564cc97c8f34f96bce28d3fa37808891f0d08db..13a3d2e8198625bc79d2177006d410558200364a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000-2007 Apple Inc. All rights reserved.
+ * Copyright (c) 2000-2009 Apple Inc. All rights reserved.
  *
  * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  * 
@@ -165,15 +165,15 @@ thread_quantum_expire(
        /*
         *      Context switch check.
         */
-       if ((preempt = csw_check(thread, processor)) != AST_NONE)
+       if ((preempt = csw_check(processor)) != AST_NONE)
                ast_on(preempt);
        else {
                processor_set_t         pset = processor->processor_set;
 
                pset_lock(pset);
 
-               pset_hint_low(pset, processor);
-               pset_hint_high(pset, processor);
+               pset_pri_hint(pset, processor, processor->current_pri);
+               pset_count_hint(pset, processor, processor->runq.count);
 
                pset_unlock(pset);
        }