Index: linux-2.6-rt-test/kernel/sched.c =================================================================== --- linux-2.6-rt-test.orig/kernel/sched.c +++ linux-2.6-rt-test/kernel/sched.c @@ -62,6 +62,8 @@ #include #include +#include + #include /* @@ -1900,6 +1902,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);