Re: [PATCH v3] sched/cpufreq: optimize cpufreq update kicker to avoid update multiple times

2016-04-25 Thread Peter Zijlstra
On Fri, Apr 22, 2016 at 02:04:56PM +0200, Rafael J. Wysocki wrote: > [Added linux-pm to the CC - can you please do so for PM-related patches in > the future?] > > On 4/22/2016 11:07 AM, Wanpeng Li wrote: > >From: Wanpeng Li > > > >Sometimes delta_exec is 0 due to

Re: [PATCH v3] sched/cpufreq: optimize cpufreq update kicker to avoid update multiple times

2016-04-25 Thread Peter Zijlstra
On Fri, Apr 22, 2016 at 02:04:56PM +0200, Rafael J. Wysocki wrote: > [Added linux-pm to the CC - can you please do so for PM-related patches in > the future?] > > On 4/22/2016 11:07 AM, Wanpeng Li wrote: > >From: Wanpeng Li > > > >Sometimes delta_exec is 0 due to update_curr() is called multiple

Re: [PATCH v3] sched/cpufreq: optimize cpufreq update kicker to avoid update multiple times

2016-04-22 Thread Rafael J. Wysocki
[Added linux-pm to the CC - can you please do so for PM-related patches in the future?] On 4/22/2016 11:07 AM, Wanpeng Li wrote: From: Wanpeng Li Sometimes delta_exec is 0 due to update_curr() is called multiple times, this is captured by: u64 delta_exec =

Re: [PATCH v3] sched/cpufreq: optimize cpufreq update kicker to avoid update multiple times

2016-04-22 Thread Rafael J. Wysocki
[Added linux-pm to the CC - can you please do so for PM-related patches in the future?] On 4/22/2016 11:07 AM, Wanpeng Li wrote: From: Wanpeng Li Sometimes delta_exec is 0 due to update_curr() is called multiple times, this is captured by: u64 delta_exec = rq_clock_task(rq) -

[PATCH v3] sched/cpufreq: optimize cpufreq update kicker to avoid update multiple times

2016-04-22 Thread Wanpeng Li
From: Wanpeng Li Sometimes delta_exec is 0 due to update_curr() is called multiple times, this is captured by: u64 delta_exec = rq_clock_task(rq) - curr->se.exec_start; This patch optimizes the cpufreq update kicker by bailing out when nothing changed, it will

[PATCH v3] sched/cpufreq: optimize cpufreq update kicker to avoid update multiple times

2016-04-22 Thread Wanpeng Li
From: Wanpeng Li Sometimes delta_exec is 0 due to update_curr() is called multiple times, this is captured by: u64 delta_exec = rq_clock_task(rq) - curr->se.exec_start; This patch optimizes the cpufreq update kicker by bailing out when nothing changed, it will benefit the upcoming