Skip to content

Commit a555e9d

Browse files
Cheng JianIngo Molnar
authored andcommitted
sched/fair: Remove unused 'curr' parameter from wakeup_gran
The first parameter of wakeup_gran(), 'curr', is unnecessary now. Signed-off-by: Cheng Jian <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: [email protected] Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
1 parent 00ef0ef commit a555e9d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

kernel/sched/fair.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6449,8 +6449,7 @@ static void task_dead_fair(struct task_struct *p)
64496449
}
64506450
#endif /* CONFIG_SMP */
64516451

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)
64546453
{
64556454
unsigned long gran = sysctl_sched_wakeup_granularity;
64566455

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

6495-
gran = wakeup_gran(curr, se);
6494+
gran = wakeup_gran(se);
64966495
if (vdiff > gran)
64976496
return 1;
64986497

0 commit comments

Comments
 (0)