[PATCH] sched/fair: use user weight to calculate util_avg in post_init_entity_util_avg()

2016-12-07 Thread T.Zhou
To calculate util_avg, se's weight should have the same resolution as cfs->avg.load_avg. So use user weight instead. Signed-off-by: T.Zhou --- kernel/sched/fair.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index

[tip:sched/core] sched/dl: Fix comment in pick_next_task_dl()

2016-11-23 Thread tip-bot for T.Zhou
Commit-ID: 176cedc4ed143745708999155c11b5717cdebb35 Gitweb: http://git.kernel.org/tip/176cedc4ed143745708999155c11b5717cdebb35 Author: T.Zhou AuthorDate: Wed, 23 Nov 2016 08:48:32 +0800 Committer: Ingo Molnar CommitDate: Wed, 23 Nov 2016 10:23:21 +0100 sched/dl: Fix comment in

[PATCH] sched/dl: change pull_rt_task() to pull_dl_task() in comment

2016-11-22 Thread T.Zhou
The pull_dl_task() is called above the comment, so change pull_rt_task() to pull_dl_task() in comment. Signed-off-by: T.Zhou --- kernel/sched/deadline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c index f276a81..d93b300

[PATCH RESEND] sched/rt: Change rt_nr_running to rt_queued in the comment

2016-11-18 Thread T.Zhou
The code actually checks rt_queued not rt_nr_running in pick_next_task_rt(), so change the corresponding comment. Signed-off-by: T.Zhou --- kernel/sched/rt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c index 2516b8d..9b4a5c5 100644

Re: [PATCH] sched/rt: Change rt_nr_running to rt_queued in the comment

2016-11-18 Thread T.Zhou
not want to interrupt you.. Will resend soon. Thanks, T.Zhou

[PATCH] sched/rt: Change rt_nr_running to rt_queued in the comment

2016-11-17 Thread T.Zhou
The code actually checks rt_queued not rt_nr_running in pick_next_task_rt(), so change the corresponding comment. Signed-off-by: T.Zhou --- kernel/sched/rt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c index 2516b8d..9b4a5c5 100644

[PATCH] sched/dl: Delete the argument flags of __dequeue_task_dl()

2016-11-17 Thread T.Zhou
See @flags is not used there, so delete it. Signed-off-by: T.Zhou --- kernel/sched/deadline.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c index c61b461..f276a81 100644 --- a/kernel/sched/deadline.c +++ b/kernel

[PATCH] sched: Assign !p->on_cpu to the second parameter of smp_cond_load_acquire()

2016-06-30 Thread T.Zhou
The second parameter of smp_cond_load_acquire() should be !p->on_cpu cause remote wakeup need to ensure that: if the task is running on prev cpu, it should be descheduled before doing the actual wakeup. Signed-off-by: T.Zhou --- kernel/sched/core.c | 2 +- 1 file changed, 1 insertion(+)