Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a555e9d8 authored by Cheng Jian's avatar Cheng Jian Committed by Ingo Molnar
Browse files

sched/fair: Remove unused 'curr' parameter from wakeup_gran



The first parameter of wakeup_gran(), 'curr', is unnecessary now.

Signed-off-by: default avatarCheng Jian <cj.chengjian@huawei.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: huawei.libin@huawei.com
Cc: xiexiuqi@huawei.com
Link: http://lkml.kernel.org/r/1512653443-179848-1-git-send-email-cj.chengjian@huawei.com


Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 00ef0ef2
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -6449,8 +6449,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;

@@ -6492,7 +6491,7 @@ wakeup_preempt_entity(struct sched_entity *curr, struct sched_entity *se)
	if (vdiff <= 0)
		return -1;

	gran = wakeup_gran(curr, se);
	gran = wakeup_gran(se);
	if (vdiff > gran)
		return 1;