Re: [PATCH v2] cpufreq: stats: Use lock by stat to replace global spin lock

2019-05-01 Thread Rafael J. Wysocki
On Tuesday, April 9, 2019 11:27:52 AM CEST Viresh Kumar wrote: > On 09-04-19, 16:43, Kyle Lin wrote: > > Stats is updated by each policy, using the lock by stat can > > reduce the contention. > > > > Signed-off-by: Kyle Lin > > --- > > Changes in v2: > > - Drop the comment of the lock. > > > >

Re: [PATCH v2] cpufreq: stats: Use lock by stat to replace global spin lock

2019-04-09 Thread Viresh Kumar
On 09-04-19, 16:43, Kyle Lin wrote: > Stats is updated by each policy, using the lock by stat can > reduce the contention. > > Signed-off-by: Kyle Lin > --- > Changes in v2: > - Drop the comment of the lock. > > drivers/cpufreq/cpufreq_stats.c | 15 --- > 1 file changed, 8 inserti

[PATCH v2] cpufreq: stats: Use lock by stat to replace global spin lock

2019-04-09 Thread Kyle Lin
Stats is updated by each policy, using the lock by stat can reduce the contention. Signed-off-by: Kyle Lin --- Changes in v2: - Drop the comment of the lock. drivers/cpufreq/cpufreq_stats.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/cpufreq/cpu