Skip to contentSkip to conversation

remove unused parameter

PATCH New Weiwei Jia 1 participant 1 message Dec 10, 2016 Scheduler

lore
Share & tools
lore

Weiwei Jia

author
#0 lore raw

PATCH 1/1 remove unused parameter

Remove unused parameter in wakeup_gran function for Completely Fair Scheduling (CFS).

---
 kernel/sched/fair.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/sched/fair.c +2 -2
index c242944..f4375d4 100644
@@ -5763,7 +5763,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)
+wakeup_gran(struct sched_entity *se)
 {
 	unsigned long gran = sysctl_sched_wakeup_granularity;
 
@@ -5805,7 +5805,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;
 
Signature · 1 line
1.9.1