aboutsummaryrefslogtreecommitdiff
path: root/sys/vm/vm_zeroidle.c
diff options
context:
space:
mode:
authorJeff Roberson <jeff@FreeBSD.org>2008-04-17 04:20:10 +0000
committerJeff Roberson <jeff@FreeBSD.org>2008-04-17 04:20:10 +0000
commit8df78c41d60219744f69ac9ec4e2842407fdca40 (patch)
tree670d4df2ed30d93745545294f2c7cb18db2f3d2c /sys/vm/vm_zeroidle.c
parentf86476aa7d1910f31d896f73880c0ad185c4fe90 (diff)
downloadsrc-8df78c41d60219744f69ac9ec4e2842407fdca40.tar.gz
src-8df78c41d60219744f69ac9ec4e2842407fdca40.zip
- Make SCHED_STATS more generic by adding a wrapper to create the
variables and sysctl nodes. - In reset walk the children of kern_sched_stats and reset the counters via the oid_arg1 pointer. This allows us to add arbitrary counters to the tree and still reset them properly. - Define a set of switch types to be passed with flags to mi_switch(). These types are named SWT_*. These types correspond to SCHED_STATS counters and are automatically handled in this way. - Make the new SWT_ types more specific than the older switch stats. There are now stats for idle switches, remote idle wakeups, remote preemption ithreads idling, etc. - Add switch statistics for ULE's pickcpu algorithm. These stats include how much migration there is, how often affinity was successful, how often threads were migrated to the local cpu on wakeup, etc. Sponsored by: Nokia
Notes
Notes: svn path=/head/; revision=178272
Diffstat (limited to 'sys/vm/vm_zeroidle.c')
-rw-r--r--sys/vm/vm_zeroidle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_zeroidle.c b/sys/vm/vm_zeroidle.c
index c82de5a45bb6..9e1970ab9450 100644
--- a/sys/vm/vm_zeroidle.c
+++ b/sys/vm/vm_zeroidle.c
@@ -127,7 +127,7 @@ vm_pagezero(void __unused *arg)
#ifndef PREEMPTION
if (sched_runnable()) {
thread_lock(curthread);
- mi_switch(SW_VOL, NULL);
+ mi_switch(SW_VOL | SWT_IDLE, NULL);
thread_unlock(curthread);
}
#endif