[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <54465FB6.1060800@arm.com>
Date: Tue, 21 Oct 2014 14:29:26 +0100
From: Juri Lelli <juri.lelli@....com>
To: Wanpeng Li <kernellwp@...il.com>,
Wanpeng Li <wanpeng.li@...ux.intel.com>,
Ingo Molnar <mingo@...hat.com>,
Peter Zijlstra <peterz@...radead.org>
CC: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 2/2] sched/deadline: don't need to balance during wakeup
if wakee is pinned
Hi,
On 21/10/14 13:19, Wanpeng Li wrote:
> Cc Juri,
>
> δΊ 10/14/14, 10:22 AM, Wanpeng Li ει:
>> Use nr_cpus_allowed to bail from select_task_rq() when only one cpu
>> can be used, and saves some cycles for pinned tasks.
>>
>> Signed-off-by: Wanpeng Li <wanpeng.li@...ux.intel.com>
>> ---
>> kernel/sched/deadline.c | 3 +++
>> 1 file changed, 3 insertions(+)
>>
>> diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c
>> index f46b7f1..5874bf8 100644
>> --- a/kernel/sched/deadline.c
>> +++ b/kernel/sched/deadline.c
>> @@ -914,6 +914,9 @@ select_task_rq_dl(struct task_struct *p, int cpu, int sd_flag, int flags)
>> struct task_struct *curr;
>> struct rq *rq;
>>
>> + if (p->nr_cpus_allowed == 1)
>> + goto out;
>> +
>> if (sd_flag != SD_BALANCE_WAKE)
>> goto out;
>>
Apart from the encoding of the resend, it looks good, thanks!
Best,
- Juri
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists