Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

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

Signed-off-by: Cheng 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: Ingo Molnar <mingo@kernel.org>

authored by

Cheng Jian and committed by
Ingo Molnar
a555e9d8 00ef0ef2

+2 -3
+2 -3
kernel/sched/fair.c
··· 6449 6449 } 6450 6450 #endif /* CONFIG_SMP */ 6451 6451 6452 - static unsigned long 6453 - wakeup_gran(struct sched_entity *curr, struct sched_entity *se) 6452 + static unsigned long wakeup_gran(struct sched_entity *se) 6454 6453 { 6455 6454 unsigned long gran = sysctl_sched_wakeup_granularity; 6456 6455 ··· 6491 6492 if (vdiff <= 0) 6492 6493 return -1; 6493 6494 6494 - gran = wakeup_gran(curr, se); 6495 + gran = wakeup_gran(se); 6495 6496 if (vdiff > gran) 6496 6497 return 1; 6497 6498