mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] sched: remove unused params
@ 2008-01-30 15:54 Gerald Stralko
  2008-01-30 16:13 ` Ingo Molnar
  0 siblings, 1 reply; 2+ messages in thread
From: Gerald Stralko @ 2008-01-30 15:54 UTC (permalink / raw)
  To: mingo; +Cc: linux-kernel

This removes the extra struct task_struct *p parameter in inc_nr_running 
and dec_nr_running functions.

Signed-off by: Jerry Stralko <gerb.stralko@gmail.com>
---

diff --git a/kernel/sched.c b/kernel/sched.c
index ba4c880..8355e00 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -1255,12 +1255,12 @@ static int task_hot(struct task_struct *p, u64 now, struct sched_domain *sd);
 
 #define sched_class_highest (&rt_sched_class)
 
-static void inc_nr_running(struct task_struct *p, struct rq *rq)
+static void inc_nr_running(struct rq *rq)
 {
 	rq->nr_running++;
 }
 
-static void dec_nr_running(struct task_struct *p, struct rq *rq)
+static void dec_nr_running(struct rq *rq)
 {
 	rq->nr_running--;
 }
@@ -1354,7 +1354,7 @@ static void activate_task(struct rq *rq, struct task_struct *p, int wakeup)
 		rq->nr_uninterruptible--;
 
 	enqueue_task(rq, p, wakeup);
-	inc_nr_running(p, rq);
+	inc_nr_running(rq);
 }
 
 /*
@@ -1366,7 +1366,7 @@ static void deactivate_task(struct rq *rq, struct task_struct *p, int sleep)
 		rq->nr_uninterruptible++;
 
 	dequeue_task(rq, p, sleep);
-	dec_nr_running(p, rq);
+	dec_nr_running(rq);
 }
 
 /**
@@ -2006,7 +2006,7 @@ void fastcall wake_up_new_task(struct task_struct *p, unsigned long clone_flags)
 		 * management (if any):
 		 */
 		p->sched_class->task_new(rq, p);
-		inc_nr_running(p, rq);
+		inc_nr_running(rq);
 	}
 	check_preempt_curr(rq, p);
 #ifdef CONFIG_SMP

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] sched: remove unused params
  2008-01-30 15:54 [PATCH] sched: remove unused params Gerald Stralko
@ 2008-01-30 16:13 ` Ingo Molnar
  0 siblings, 0 replies; 2+ messages in thread
From: Ingo Molnar @ 2008-01-30 16:13 UTC (permalink / raw)
  To: Gerald Stralko; +Cc: linux-kernel


* Gerald Stralko <gerb.stralko@gmail.com> wrote:

> This removes the extra struct task_struct *p parameter in inc_nr_running 
> and dec_nr_running functions.

> -static void inc_nr_running(struct task_struct *p, struct rq *rq)
> +static void inc_nr_running(struct rq *rq)
>  {
>  	rq->nr_running++;

thanks, applied.

	Ingo

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-01-30 16:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-30 15:54 [PATCH] sched: remove unused params Gerald Stralko
2008-01-30 16:13 ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®