summaryrefslogtreecommitdiff
path: root/kern/ipc_sched.c
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2014-12-01 16:16:04 +0100
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-12-01 16:16:04 +0100
commitcd76999cd1cf590b95df3e22d2eb2a7dad333499 (patch)
treeea0b5671e3f5376e62f17b8799120a3ca96b0b98 /kern/ipc_sched.c
parent51ebaeb376521c0dbd0020d3515a4b5dfe01a12d (diff)
kern: disable all counters by default
Make all five non-conditional counters conditional ones. Casual checking revealed that the hits-to-miss ratio is excellent. * kern/counters.c: Make all counters conditional. * kern/counters.h: Likewise. * kern/ipc_sched.c: Likewise. * kern/sched_prim.c: Likewise.
Diffstat (limited to 'kern/ipc_sched.c')
-rw-r--r--kern/ipc_sched.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kern/ipc_sched.c b/kern/ipc_sched.c
index d5b9263..cc1672d 100644
--- a/kern/ipc_sched.c
+++ b/kern/ipc_sched.c
@@ -214,7 +214,7 @@ thread_handoff(
thread_unlock(new);
(void) splx(s);
- counter_always(c_thread_handoff_misses++);
+ counter(c_thread_handoff_misses++);
return FALSE;
}
@@ -278,6 +278,6 @@ thread_handoff(
after_old_thread:
(void) splx(s);
- counter_always(c_thread_handoff_hits++);
+ counter(c_thread_handoff_hits++);
return TRUE;
}