mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] sched: remove unused parameter from wakeup_gran
@ 2017-12-07 13:30 Cheng Jian
  2017-12-08  8:40 ` [tip:sched/core] sched/fair: Remove unused 'curr' " tip-bot for Cheng Jian
  0 siblings, 1 reply; 2+ messages in thread
From: Cheng Jian @ 2017-12-07 13:30 UTC (permalink / raw)
  To: mingo, peterz; +Cc: linux-kernel, xiexiuqi, huawei.libin, cj.chengjian

The first parameter 'curr' in wakeup_gran is unnecessary now.

Signed-off-by: Cheng Jian <cj.chengjian@huawei.com>
---
 kernel/sched/fair.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 4037e19..005e196 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -6405,8 +6405,7 @@ static void task_dead_fair(struct task_struct *p)
 }
 #endif /* CONFIG_SMP */
 
-static unsigned long
-wakeup_gran(struct sched_entity *curr, struct sched_entity *se)
+static unsigned long wakeup_gran(struct sched_entity *se)
 {
 	unsigned long gran = sysctl_sched_wakeup_granularity;
 
@@ -6448,7 +6447,7 @@ static void task_dead_fair(struct task_struct *p)
 	if (vdiff <= 0)
 		return -1;
 
-	gran = wakeup_gran(curr, se);
+	gran = wakeup_gran(se);
 	if (vdiff > gran)
 		return 1;
 
-- 
1.8.3.1

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

end of thread, other threads:[~2017-12-08  8:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-07 13:30 [PATCH] sched: remove unused parameter from wakeup_gran Cheng Jian
2017-12-08  8:40 ` [tip:sched/core] sched/fair: Remove unused 'curr' " tip-bot for Cheng Jian

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

Powered by JetHome