lkml.org 
[lkml]   [2016]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH 11/11] sched/fair: Refactor select_task_rq_fair()
On Thu, Jun 16, 2016 at 09:49:35AM +0800, Yuyang Du wrote:
> diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
> index f15461f..1ab41b8 100644
> --- a/kernel/sched/fair.c
> +++ b/kernel/sched/fair.c
> @@ -4986,12 +4986,14 @@ static void record_wakee(struct task_struct *p)
> */
> if (time_after(jiffies, current->wakee_flip_decay_ts + HZ)) {
> current->wakee_flips >>= 1;
> + current->wakee_count >>= 1;
> current->wakee_flip_decay_ts = jiffies;
> }
>
> if (current->last_wakee != p) {
> current->last_wakee = p;
> current->wakee_flips++;
> }

So sorry that:

current->wakee_count++;

should be moved out of the if statement.

\
 
 \ /
  Last update: 2016-06-16 12:41    [W:0.112 / U:1.564 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site