Index: linux-2.6.18/kernel/sched.c =================================================================== --- linux-2.6.18.orig/kernel/sched.c 2006-10-06 17:45:54.000000000 -0400 +++ linux-2.6.18/kernel/sched.c 2006-10-09 11:42:45.000000000 -0400 @@ -54,6 +54,8 @@ #include #include +#include + #include /* @@ -1826,6 +1828,8 @@ context_switch(struct rq *rq, struct tas spin_release(&rq->lock.dep_map, 1, _THIS_IP_); #endif + logdev_record_switch(prev, next); + /* Here we just switch the register state and the stack. */ switch_to(prev, next, prev);