lkml.org 
[lkml]   [2013]   [Jun]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/3] sched: code refine in unthrottle_cfs_rq()
On Tue, Jun 04, 2013 at 02:23:39PM +0800, Michael Wang wrote:
> Directly use rq to save some code.
>
> CC: Ingo Molnar <mingo@kernel.org>
> CC: Peter Zijlstra <peterz@infradead.org>
> Signed-off-by: Michael Wang <wangyun@linux.vnet.ibm.com>

Please send patches against tip/master; the below didn't apply cleanly.
It was a trivial conflict so I applied force and made it fit.

Thanks!

> ---
> kernel/sched/fair.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
> index c61a614..1e10911 100644
> --- a/kernel/sched/fair.c
> +++ b/kernel/sched/fair.c
> @@ -2298,7 +2298,7 @@ void unthrottle_cfs_rq(struct cfs_rq *cfs_rq)
> int enqueue = 1;
> long task_delta;
>
> - se = cfs_rq->tg->se[cpu_of(rq_of(cfs_rq))];
> + se = cfs_rq->tg->se[cpu_of(rq)];
>
> cfs_rq->throttled = 0;
> raw_spin_lock(&cfs_b->lock);
> --
> 1.7.4.1
>


\
 
 \ /
  Last update: 2013-06-05 14:01    [W:0.094 / U:1.904 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site