summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_clock.c
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2016-04-17 11:04:27 +0000
committerkib <kib@FreeBSD.org>2016-04-17 11:04:27 +0000
commitf16910a47e3ebe4ac0ce3e4bedf0d360e11e8200 (patch)
tree66c1c7fbde4ffdb3aa09dbb4a148005b11ef9188 /sys/kern/kern_clock.c
parent5aaf17e8ed935e00786f913b621b6c56e538126c (diff)
downloadFreeBSD-src-f16910a47e3ebe4ac0ce3e4bedf0d360e11e8200.zip
FreeBSD-src-f16910a47e3ebe4ac0ce3e4bedf0d360e11e8200.tar.gz
The struct thread td_estcpu member is only used by the 4BSD scheduler.
Move it to the struct td_sched for 4BSD, removing always present field, otherwise unused for ULE. New scheduler method sched_estcpu() returns the estimation for kinfo_proc consumption. As before, it always returns 0 for ULE. Remove sched_tick() scheduler method, unused both by 4BSD and ULE. Update locking comment for the 4BSD struct td_sched, copying it from the same comment for ULE. Spell MAXPRI as PRI_MAX_TIMESHARE in the 4BSD comment. Based on some notes from, and reviewed by: bde Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/kern/kern_clock.c')
-rw-r--r--sys/kern/kern_clock.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c
index fdf2271..9312a24 100644
--- a/sys/kern/kern_clock.c
+++ b/sys/kern/kern_clock.c
@@ -449,7 +449,6 @@ hardclock_cpu(int usermode)
PROC_ITIMUNLOCK(p);
}
thread_lock(td);
- sched_tick(1);
td->td_flags |= flags;
thread_unlock(td);
@@ -539,7 +538,6 @@ hardclock_cnt(int cnt, int usermode)
PROC_ITIMUNLOCK(p);
}
thread_lock(td);
- sched_tick(cnt);
td->td_flags |= flags;
thread_unlock(td);
OpenPOWER on IntegriCloud