--- 2.4.19pre10aa1/kernel/context.c.~1~ Tue Jan 22 18:55:00 2002 +++ 2.4.19pre10aa1/kernel/context.c Thu Jun 6 17:04:10 2002 @@ -75,6 +75,13 @@ static int context_thread(void *startup) keventd_running = 1; keventd_task = curtask; + /* + * keventd events are like kernel code, it has priority over userspace. + * This also means keventd must not be abused for not must-do tasks. + */ + keventd_task->policy = SCHED_RR; + keventd_task->rt_priority = MAX_USER_RT_PRIO; + spin_lock_irq(&curtask->sigmask_lock); siginitsetinv(&curtask->blocked, sigmask(SIGCHLD)); recalc_sigpending(curtask); --- 2.4.19pre10aa1/kernel/context.c.~1~ Thu Jun 6 18:10:43 2002 +++ 2.4.19pre10aa1/kernel/context.c Thu Jun 6 18:17:42 2002 @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include