/*
- * Copyright (c) 2000-2007 Apple Inc. All rights reserved.
+ * Copyright (c) 2000-2009 Apple Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
/*
* 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);
}