pc++;
#endif /* lint */
- mp_disable_preemption();
my_cpu = cpu_number();
/*
* especially when debugging, to wind up here with
* no thread to bill against. So ignore the tick.
*/
- if (thread == THREAD_NULL) {
- mp_enable_preemption();
+ if (thread == THREAD_NULL)
return;
- }
#if MACH_PROF
inkernel = !usermode && (pc < (unsigned int)ETEXT);
if (usermode) {
TICKBUMP(&thread->user_timer);
-#if 0
if (thread->priority < BASEPRI_DEFAULT)
state = CPU_STATE_NICE;
else
-#endif
state = CPU_STATE_USER;
#if GPROF
if (pv->active)
}
machine_slot[my_cpu].cpu_ticks[state]++;
- thread_quantum_update(my_cpu, thread, 1, state);
/*
* Hertz processing performed by the master-cpu
profile(pc, kernel_task->profil_buffer);
}
#endif /* MACH_PROF */
- mp_enable_preemption();
}