Prev: [PATCH 4/5] thread_group_cputime: simplify, document the "alive" check
Next: [PATCH 1/5] sched: __sched_setscheduler: read RLIMIT_RTPRIO lockless
From: Oleg Nesterov on 10 Jun 2010 19:20 Remove the obsolete ->signal != NULL check in watchdog(). Since ea6d290c ->signal can't be NULL. Signed-off-by: Oleg Nesterov <oleg(a)redhat.com> --- kernel/sched_rt.c | 3 --- 1 file changed, 3 deletions(-) --- 35-rc2/kernel/sched_rt.c~2_WD_DONT_CK_SIGNAL 2010-06-11 00:47:34.000000000 +0200 +++ 35-rc2/kernel/sched_rt.c 2010-06-11 01:07:25.000000000 +0200 @@ -1663,9 +1663,6 @@ static void watchdog(struct rq *rq, stru { unsigned long soft, hard; - if (!p->signal) - return; - /* max may change after cur was read, this will be fixed next tick */ soft = task_rlimit(p, RLIMIT_RTTIME); hard = task_rlimit_max(p, RLIMIT_RTTIME); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |