Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1423887
| From | Yuyang Du <yuyang.du@intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC PATCH 11/11] sched/fair: Refactor select_task_rq_fair() |
| Date | 2016-06-16 12:00 +0200 |
| Message-ID | <rKCfE-6K5-11@gated-at.bofh.it> (permalink) |
| References | <rKC5X-6GJ-3@gated-at.bofh.it> <rKC5X-6GJ-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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.
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[RFC PATCH 11/11] sched/fair: Refactor select_task_rq_fair() Yuyang Du <yuyang.du@intel.com> - 2016-06-16 11:50 +0200 Re: [RFC PATCH 11/11] sched/fair: Refactor select_task_rq_fair() Yuyang Du <yuyang.du@intel.com> - 2016-06-16 12:00 +0200
csiph-web