diff options
author | Julian Elischer <julian@FreeBSD.org> | 2006-12-06 06:34:57 +0000 |
---|---|---|
committer | Julian Elischer <julian@FreeBSD.org> | 2006-12-06 06:34:57 +0000 |
commit | ad1e7d285ab101b694e6d7a0cdbf7ec10c8dbdce (patch) | |
tree | c0bf9a3a56052122c3c551fe189b4979f9bf745b /sys/kern/kern_clock.c | |
parent | 3541d6d881a39e47b2234dbf68db6b5030aca334 (diff) |
Notes
Diffstat (limited to 'sys/kern/kern_clock.c')
-rw-r--r-- | sys/kern/kern_clock.c | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c index cd98bdd26ee98..a3732a81e5951 100644 --- a/sys/kern/kern_clock.c +++ b/sys/kern/kern_clock.c @@ -203,23 +203,12 @@ hardclock_cpu(int usermode) mtx_lock_spin_flags(&sched_lock, MTX_QUIET); sched_tick(); #ifdef KSE +#if 0 /* for now do nothing */ if (p->p_flag & P_SA) { - /* XXXKSE What to do? */ - } else { - pstats = p->p_stats; - if (usermode && - timevalisset(&pstats->p_timer[ITIMER_VIRTUAL].it_value) && - itimerdecr(&pstats->p_timer[ITIMER_VIRTUAL], tick) == 0) { - p->p_sflag |= PS_ALRMPEND; - td->td_flags |= TDF_ASTPENDING; - } - if (timevalisset(&pstats->p_timer[ITIMER_PROF].it_value) && - itimerdecr(&pstats->p_timer[ITIMER_PROF], tick) == 0) { - p->p_sflag |= PS_PROFPEND; - td->td_flags |= TDF_ASTPENDING; - } + /* XXXKSE What to do? Should do more. */ } -#else +#endif +#endif pstats = p->p_stats; if (usermode && timevalisset(&pstats->p_timer[ITIMER_VIRTUAL].it_value) && @@ -232,7 +221,6 @@ hardclock_cpu(int usermode) p->p_sflag |= PS_PROFPEND; td->td_flags |= TDF_ASTPENDING; } -#endif mtx_unlock_spin_flags(&sched_lock, MTX_QUIET); #ifdef HWPMC_HOOKS |