lkml.org 
[lkml]   [2017]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] sched: remove unused parameter from wakeup_gran
Date
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
\
 
 \ /
  Last update: 2017-12-07 14:26    [W:0.028 / U:8.476 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site