Index: linux-2.6.23-rc9-rt2/kernel/sched.c =================================================================== --- linux-2.6.23-rc9-rt2.orig/kernel/sched.c +++ linux-2.6.23-rc9-rt2/kernel/sched.c @@ -64,6 +64,7 @@ #include #include #include +#include #include @@ -2394,6 +2395,8 @@ context_switch(struct rq *rq, struct tas *current_ptr = next; *current_ti_ptr = next->thread_info; #endif + logdev_record_switch(prev, next); + /* Here we just switch the register state and the stack. */ switch_to(prev, next, prev);