Re: [PATCH 2/2] cpufreq: governors: Remove code redundancy between governors

2013-01-31 Thread Fabio Baltieri
Hello Rafael, On Thu, Jan 31, 2013 at 11:23:54PM +0100, Rafael J. Wysocki wrote: > On Thursday, January 31, 2013 07:50:04 PM Fabio Baltieri wrote: > > On Thu, Jan 31, 2013 at 10:58:02PM +0530, Viresh Kumar wrote: > > > With the inclusion of following patches: > >

Re: [PATCH 2/2] cpufreq: governors: Remove code redundancy between governors

2013-01-31 Thread Fabio Baltieri
ced again. Get rid of it. > > Signed-off-by: Viresh Kumar > --- Hi, Tested-by: Fabio Baltieri Thanks, Fabio -- Fabio Baltieri ___ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev

Re: [PATCH 1/2] cpufreq: governors: Get rid of dbs_data->enable field

2013-01-31 Thread Fabio Baltieri
lo Viresh, thanks for getting this done... looks much cleaner now! I tested both patches on my ux500 setup (dual Cortex-A9) and it seems to run correctly on both CPU load changes and CPU hotplug, so: Tested-by: Fabio Baltieri As a sidenote, I noticed just now that since: bc92bea cpufre

Re: [PATCH] cpufreq: governors: clean timer init and exit code

2013-01-31 Thread Fabio Baltieri
On Thu, Jan 31, 2013 at 04:23:06PM +0530, Viresh Kumar wrote: > On 30 January 2013 19:23, Fabio Baltieri wrote: > > Drop unused arguments from dbs_timer_init and clean dbs_timer_exit and > > cpufreq_governor_dbs to remove non necessary special cases. > > > > Reported-b

[PATCH] cpufreq: governors: fix misuse of cdbs.cpu

2013-01-31 Thread Fabio Baltieri
Fix governors code to set all cpu's cdbs->cpu to the the actual cpu id and use cur_policy->cpu istead of cdbs->cpu to track current governor's leader cpu. Reported-by: Viresh Kumar Signed-off-by: Fabio Baltieri --- drivers/cpufreq/cpufreq_conservative.c | 5 +++

[PATCH v2] cpufreq: governors: implement generic policy_is_shared

2013-01-31 Thread Fabio Baltieri
Implement a generic helper function policy_is_shared() to replace the current dbs_sw_coordinated_cpus() at cpufreq level, so that it can be used by code other than cpufreq governors. Suggested-by: Viresh Kumar Signed-off-by: Fabio Baltieri --- Changes from v1: - replaced cpumask_weight in acpi

Re: [PATCH v7 2/4] cpufreq: ondemand: call dbs_check_cpu only when necessary

2013-01-31 Thread Fabio Baltieri
On Thu, Jan 31, 2013 at 02:12:29PM +0530, Viresh Kumar wrote: > On 31 January 2013 14:09, Fabio Baltieri wrote: > > Ok, now I see the problem: cdbs->cpu is initialized only on the leader > > cpu and this is working by coincidence on my system, while > > cdbs->time_stamp

Re: [PATCH] cpufreq: governors: implement generic policy_is_shared

2013-01-31 Thread Fabio Baltieri
On Thu, Jan 31, 2013 at 02:01:27PM +0530, Viresh Kumar wrote: > On 31 January 2013 13:44, Fabio Baltieri wrote: > > Implement a generic helper function policy_is_shared() to replace the > > current dbs_sw_coordinated_cpus() at cpufreq level, so that it can be > > used by co

Re: [PATCH v7 2/4] cpufreq: ondemand: call dbs_check_cpu only when necessary

2013-01-31 Thread Fabio Baltieri
Hello Viresh, On Wed, Jan 30, 2013 at 10:41:08PM +0530, Viresh Kumar wrote: > On 30 January 2013 22:16, Fabio Baltieri wrote: > > Isn't that how it works now? The current cpu ktime is not checked > > against its own, but against the "leader" cpu (dbs_info_local-&

[PATCH] cpufreq: governors: implement generic policy_is_shared

2013-01-31 Thread Fabio Baltieri
Implement a generic helper function policy_is_shared() to replace the current dbs_sw_coordinated_cpus() at cpufreq level, so that it can be used by code other than cpufreq governors. Suggested-by: Viresh Kumar Signed-off-by: Fabio Baltieri --- drivers/cpufreq/cpufreq_conservative.c | 2

Re: [PATCH v7 1/4] cpufreq: handle SW coordinated CPUs

2013-01-30 Thread Fabio Baltieri
ts v8. I'm not sending a v8 as Rafael already asked for incremental, but I'll send a patch with that soon. Thanks, Fabio -- Fabio Baltieri ___ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev

Re: [PATCH v7 3/4] cpufreq: conservative: call dbs_check_cpu only when necessary

2013-01-30 Thread Fabio Baltieri
On Wed, Jan 30, 2013 at 09:23:22PM +0530, Viresh Kumar wrote: > On 30 January 2013 18:30, Fabio Baltieri wrote: > > Modify conservative timer to not resample CPU utilization if recently > > sampled from another SW coordinated core. > > > > Signed-off-by: Fabio Baltie

Re: [PATCH v7 2/4] cpufreq: ondemand: call dbs_check_cpu only when necessary

2013-01-30 Thread Fabio Baltieri
On Wed, Jan 30, 2013 at 09:21:41PM +0530, Viresh Kumar wrote: > On 30 January 2013 18:30, Fabio Baltieri wrote: > > Modify ondemand timer to not resample CPU utilization if recently > > sampled from another SW coordinated core. > > > > Signed-off-by: Fabio Baltieri

Re: [PATCH v7 1/4] cpufreq: handle SW coordinated CPUs

2013-01-30 Thread Fabio Baltieri
[internal note] > I believe you are required to send patches to patc...@linaro.org too :) I already have patc...@linaro.org in BCC, all my patches are there. [/internal note] > On 30 January 2013 18:30, Fabio Baltieri wrote: > > From: Rickard Andersson > > > > This patch f

[PATCH] cpufreq: governors: clean timer init and exit code

2013-01-30 Thread Fabio Baltieri
Drop unused arguments from dbs_timer_init and clean dbs_timer_exit and cpufreq_governor_dbs to remove non necessary special cases. Reported-by: Viresh Kumar Signed-off-by: Fabio Baltieri --- Hello Rafael, that's the cleanup on top of "cpufreq: handle SW coordinated CPUs".

[PATCH v7 0/5] cpufreq: handle SW coordinated CPUs

2013-01-30 Thread Fabio Baltieri
patches instead. Thanks, Fabio Fabio Baltieri (3): cpufreq: ondemand: call dbs_check_cpu only when necessary cpufreq: conservative: call dbs_check_cpu only when necessary cpufreq: ondemand: use all CPUs in update_sampling_rate Rickard Andersson (1): cpufreq: handle SW coordinated CPUs

[PATCH v7 2/4] cpufreq: ondemand: call dbs_check_cpu only when necessary

2013-01-30 Thread Fabio Baltieri
Modify ondemand timer to not resample CPU utilization if recently sampled from another SW coordinated core. Signed-off-by: Fabio Baltieri --- drivers/cpufreq/cpufreq_governor.c | 3 ++ drivers/cpufreq/cpufreq_governor.h | 1 + drivers/cpufreq/cpufreq_ondemand.c | 58

[PATCH v7 3/4] cpufreq: conservative: call dbs_check_cpu only when necessary

2013-01-30 Thread Fabio Baltieri
Modify conservative timer to not resample CPU utilization if recently sampled from another SW coordinated core. Signed-off-by: Fabio Baltieri --- drivers/cpufreq/cpufreq_conservative.c | 47 +- 1 file changed, 41 insertions(+), 6 deletions(-) diff --git a

[PATCH v7 1/4] cpufreq: handle SW coordinated CPUs

2013-01-30 Thread Fabio Baltieri
the cpufreq governor (both ondemand and conservative). This patch make sure that deferred timers are run on all CPUs in the case of software controlled CPUs that run on the same frequency. Signed-off-by: Rickard Andersson Signed-off-by: Fabio Baltieri --- drivers/cpufreq/cpufreq_conservative.c

[PATCH v7 4/4] cpufreq: ondemand: use all CPUs in update_sampling_rate

2013-01-30 Thread Fabio Baltieri
Modify update_sampling_rate() to check, and eventually immediately schedule, all CPU's do_dbs_timer delayed work. This is required in case of software coordinated CPUs, as we now have a separate delayed work for each CPU. Signed-off-by: Fabio Baltieri --- drivers/cpufreq/cpufreq_ondemand.

Re: [PATCH 1/5] cpufreq: handle SW coordinated CPUs

2013-01-30 Thread Fabio Baltieri
On Wed, Jan 30, 2013 at 04:47:58PM +0530, Viresh Kumar wrote: > On 30 January 2013 16:34, Fabio Baltieri wrote: > > Small sidenote, actually what I'm going to drop here i *cdbs, as I need > > cpu for schedule_delayed_work_on and can't use cdbs->cpu for that as >

Re: [PATCH 1/5] cpufreq: handle SW coordinated CPUs

2013-01-30 Thread Fabio Baltieri
On Wed, Jan 30, 2013 at 10:14:53AM +0100, Fabio Baltieri wrote: > Hello Viresh, > > On Wed, Jan 30, 2013 at 12:33:40PM +0530, Viresh Kumar wrote: > > I am starting to follow cpufreq patches religiously now and so have to come > > back to this old thread due to some crash w

Re: [PATCH 2/5] cpufreq: star/stop cpufreq timers on cpu hotplug

2013-01-30 Thread Fabio Baltieri
;m sending a v7 with the cleanup on first patch and this one dropped if you are ok with rebasing your pm-cpufreq-next. Let me know if you prefer me to just send a revert + cleanup patch instead. Thanks, Fabio -- Fabio Baltieri ___ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev

Re: [PATCH 1/5] cpufreq: handle SW coordinated CPUs

2013-01-30 Thread Fabio Baltieri
Definitely, that's what we have -next for! > On Thu, Dec 27, 2012 at 8:25 PM, Fabio Baltieri > wrote: > > > diff --git a/drivers/cpufreq/cpufreq_governor.c > > b/drivers/cpufreq/cpufreq_governor.c > > > static inline void dbs_timer_init(struct

Re: [PATCH 2/2] cpufreq: governors: remove redundant code

2012-11-23 Thread Fabio Baltieri
delay = usecs_to_jiffies(dbs_tuners_ins.sampling_rate > - * dbs_info->rate_mult); > - > - if (num_online_cpus() > 1) > - delay -= jiffies % delay; I'm sending a patch for this one. Fabio -- Fabio Baltieri ___ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev