Parm 'curr' has not been used, remove it to make code clean. CC: Ingo Molnar <mi...@redhat.com> CC: Peter Zijlstra <pet...@infradead.org> Signed-off-by: Michael Wang <wang...@linux.vnet.ibm.com> --- kernel/sched/fair.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index a925e17..05643d6 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -3536,7 +3536,7 @@ migrate_task_rq_fair(struct task_struct *p, int next_cpu) #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; @@ -3578,7 +3578,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; -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/