Messages in this thread | | | Date | Wed, 22 Oct 2014 08:23:11 +0800 | From | Yuyang Du <> | Subject | Re: [RESEND PATCH 1/3 v5] sched: Remove update_rq_runnable_avg |
| |
On Fri, Oct 10, 2014 at 10:21:55AM +0800, Yuyang Du wrote: > > diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c index 627b3c3..da0b7d5 100644 > --- a/kernel/sched/debug.c > +++ b/kernel/sched/debug.c
> - if (!se) { > - struct sched_avg *avg = &cpu_rq(cpu)->avg; > - P(avg->runnable_avg_sum); > - P(avg->runnable_avg_period); > - return; > - }
This is a bug. Should be:
- if (!se) - return;
Thanks to 0Day, and good improvement as previously this bug was not found. Also thanks to Chuck Ebbert.
| |