Skip to contentSkip to conversation

sched: task_tick_rt: remove the obsolete ->signal != NULL check

PATCH In review Oleg Nesterov 1 participant 2 messages Jun 10, 2010 – Jun 18, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 2/5 sched: task_tick_rt: remove the obsolete ->signal != NULL check

Remove the obsolete ->signal != NULL check in watchdog(). Since ea6d290c ->signal can't be NULL.

---

 kernel/sched_rt.c |    3 ---
 1 file changed, 3 deletions(-)
kernel/sched_rt.c renamed from kernel/sched_rt.c~2_WD_DONT_CK_SIGNAL +0 -3
@@ -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);
#1 lore raw

[tip:sched/core] sched: task_tick_rt: Remove the obsolete ->signal != NULL check

Commit-ID:  c32b4fce799d3a6157df9048d03e429956c58818
Gitweb:     http://git.kernel.org/tip/c32b4fce799d3a6157df9048d03e429956c58818
Author:     Oleg Nesterov <[email protected]>
AuthorDate: Fri, 11 Jun 2010 01:09:48 +0200
Committer:  Ingo Molnar <[email protected]>
CommitDate: Fri, 18 Jun 2010 10:46:56 +0200

sched: task_tick_rt: Remove the obsolete ->signal != NULL check

Remove the obsolete ->signal != NULL check in watchdog(). Since ea6d290c ->signal can't be NULL.

LKML-Reference: <[email protected]>

---
 kernel/sched_rt.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
kernel/sched_rt.c +0 -3
index 8afb953..d10c80e 100644
@@ -1663,9 +1663,6 @@ static void watchdog(struct rq *rq, struct task_struct *p)
 {
 	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);