Re: [PATCH v6 2/2] cpufreq: covert the cpufreq_data_lock to a spinlock

2013-04-02 Thread Nathan Zimmer
On Tue, Apr 02, 2013 at 02:48:07PM +0200, Rafael J. Wysocki wrote: > On Tuesday, April 02, 2013 10:34:21 AM Viresh Kumar wrote: > > On 2 April 2013 06:26, Nathan Zimmer wrote: > > > On Mon, Apr 01, 2013 at 10:41:27PM +0200, Rafael J. Wysocki wrote: > > >> On Monday, April 01, 2013 03:11:09 PM Nath

Re: [PATCH v6 2/2] cpufreq: covert the cpufreq_data_lock to a spinlock

2013-04-02 Thread Rafael J. Wysocki
On Tuesday, April 02, 2013 10:34:21 AM Viresh Kumar wrote: > On 2 April 2013 06:26, Nathan Zimmer wrote: > > On Mon, Apr 01, 2013 at 10:41:27PM +0200, Rafael J. Wysocki wrote: > >> On Monday, April 01, 2013 03:11:09 PM Nathan Zimmer wrote: > >> > This eliminates the rest of the contention found in

Re: [PATCH v6 2/2] cpufreq: covert the cpufreq_data_lock to a spinlock

2013-04-01 Thread Viresh Kumar
On 2 April 2013 06:26, Nathan Zimmer wrote: > On Mon, Apr 01, 2013 at 10:41:27PM +0200, Rafael J. Wysocki wrote: >> On Monday, April 01, 2013 03:11:09 PM Nathan Zimmer wrote: >> > This eliminates the rest of the contention found in __cpufreq_cpu_get. >> > I am not seeing a way to use the rcu so we

Re: [PATCH v6 2/2] cpufreq: covert the cpufreq_data_lock to a spinlock

2013-04-01 Thread Nathan Zimmer
On Mon, Apr 01, 2013 at 10:41:27PM +0200, Rafael J. Wysocki wrote: > On Monday, April 01, 2013 03:11:09 PM Nathan Zimmer wrote: > > This eliminates the rest of the contention found in __cpufreq_cpu_get. > > I am not seeing a way to use the rcu so we will have to make due with a > > rwlock for now.

Re: [PATCH v6 2/2] cpufreq: covert the cpufreq_data_lock to a spinlock

2013-04-01 Thread Rafael J. Wysocki
On Monday, April 01, 2013 03:11:09 PM Nathan Zimmer wrote: > This eliminates the rest of the contention found in __cpufreq_cpu_get. > I am not seeing a way to use the rcu so we will have to make due with a > rwlock for now. > > Cc: Viresh Kumar > Cc: "Rafael J. Wysocki" > Signed-off-by: Nathan Z

[PATCH v6 2/2] cpufreq: covert the cpufreq_data_lock to a spinlock

2013-04-01 Thread Nathan Zimmer
This eliminates the rest of the contention found in __cpufreq_cpu_get. I am not seeing a way to use the rcu so we will have to make due with a rwlock for now. Cc: Viresh Kumar Cc: "Rafael J. Wysocki" Signed-off-by: Nathan Zimmer --- drivers/cpufreq/cpufreq.c | 38 +++---