Index: linux-2.6.20-rt5/kernel/sched.c =================================================================== --- linux-2.6.20-rt5.orig/kernel/sched.c 2007-02-13 00:02:07.000000000 -0500 +++ linux-2.6.20-rt5/kernel/sched.c 2007-02-13 00:02:54.000000000 -0500 @@ -57,6 +57,8 @@ #include #include +#include + #include /* @@ -2251,6 +2253,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);