Re: [PATCH linux-next v8] cpufreq: convert the cpufreq_driver to use the rcu

2013-04-29 Thread Nathan Zimmer
On 04/29/2013 04:47 PM, Rafael J. Wysocki wrote: On Monday, April 29, 2013 02:37:28 PM Paul E. McKenney wrote: On Mon, Apr 29, 2013 at 12:22:32AM +0200, Rafael J. Wysocki wrote: On Thursday, April 04, 2013 09:57:19 PM Viresh Kumar wrote: On 4 April 2013 20:23, Nathan Zimmer wrote: We

Re: [PATCH linux-next v8] cpufreq: convert the cpufreq_driver to use the rcu

2013-04-29 Thread Rafael J. Wysocki
On Monday, April 29, 2013 02:37:28 PM Paul E. McKenney wrote: > On Mon, Apr 29, 2013 at 12:22:32AM +0200, Rafael J. Wysocki wrote: > > On Thursday, April 04, 2013 09:57:19 PM Viresh Kumar wrote: > > > On 4 April 2013 20:23, Nathan Zimmer wrote: > > > > We eventually would like to remove the

Re: [PATCH linux-next v8] cpufreq: convert the cpufreq_driver to use the rcu

2013-04-29 Thread Paul E. McKenney
On Mon, Apr 29, 2013 at 12:22:32AM +0200, Rafael J. Wysocki wrote: > On Thursday, April 04, 2013 09:57:19 PM Viresh Kumar wrote: > > On 4 April 2013 20:23, Nathan Zimmer wrote: > > > We eventually would like to remove the rwlock cpufreq_driver_lock or > > > convert > > > it back to a spinlock

Re: [PATCH linux-next v8] cpufreq: convert the cpufreq_driver to use the rcu

2013-04-29 Thread Paul E. McKenney
On Mon, Apr 29, 2013 at 12:22:32AM +0200, Rafael J. Wysocki wrote: On Thursday, April 04, 2013 09:57:19 PM Viresh Kumar wrote: On 4 April 2013 20:23, Nathan Zimmer nzim...@sgi.com wrote: We eventually would like to remove the rwlock cpufreq_driver_lock or convert it back to a spinlock

Re: [PATCH linux-next v8] cpufreq: convert the cpufreq_driver to use the rcu

2013-04-29 Thread Rafael J. Wysocki
On Monday, April 29, 2013 02:37:28 PM Paul E. McKenney wrote: On Mon, Apr 29, 2013 at 12:22:32AM +0200, Rafael J. Wysocki wrote: On Thursday, April 04, 2013 09:57:19 PM Viresh Kumar wrote: On 4 April 2013 20:23, Nathan Zimmer nzim...@sgi.com wrote: We eventually would like to remove the

Re: [PATCH linux-next v8] cpufreq: convert the cpufreq_driver to use the rcu

2013-04-29 Thread Nathan Zimmer
On 04/29/2013 04:47 PM, Rafael J. Wysocki wrote: On Monday, April 29, 2013 02:37:28 PM Paul E. McKenney wrote: On Mon, Apr 29, 2013 at 12:22:32AM +0200, Rafael J. Wysocki wrote: On Thursday, April 04, 2013 09:57:19 PM Viresh Kumar wrote: On 4 April 2013 20:23, Nathan Zimmer nzim...@sgi.com

Re: [PATCH linux-next v8] cpufreq: convert the cpufreq_driver to use the rcu

2013-04-28 Thread Rafael J. Wysocki
On Thursday, April 04, 2013 09:57:19 PM Viresh Kumar wrote: > On 4 April 2013 20:23, Nathan Zimmer wrote: > > We eventually would like to remove the rwlock cpufreq_driver_lock or convert > > it back to a spinlock and protect the read sections with RCU. The first > > step in > > that is moving

Re: [PATCH linux-next v8] cpufreq: convert the cpufreq_driver to use the rcu

2013-04-28 Thread Rafael J. Wysocki
On Thursday, April 04, 2013 09:57:19 PM Viresh Kumar wrote: On 4 April 2013 20:23, Nathan Zimmer nzim...@sgi.com wrote: We eventually would like to remove the rwlock cpufreq_driver_lock or convert it back to a spinlock and protect the read sections with RCU. The first step in that is

Re: [PATCH linux-next v8] cpufreq: convert the cpufreq_driver to use the rcu

2013-04-04 Thread Viresh Kumar
On 4 April 2013 20:23, Nathan Zimmer wrote: > We eventually would like to remove the rwlock cpufreq_driver_lock or convert > it back to a spinlock and protect the read sections with RCU. The first step > in > that is moving the cpufreq_driver to use the rcu. > I don't see an easy wasy to

[PATCH linux-next v8] cpufreq: convert the cpufreq_driver to use the rcu

2013-04-04 Thread Nathan Zimmer
We eventually would like to remove the rwlock cpufreq_driver_lock or convert it back to a spinlock and protect the read sections with RCU. The first step in that is moving the cpufreq_driver to use the rcu. I don't see an easy wasy to protect the cpufreq_cpu_data structure with the RCU, so I am

[PATCH linux-next v8] cpufreq: convert the cpufreq_driver to use the rcu

2013-04-04 Thread Nathan Zimmer
We eventually would like to remove the rwlock cpufreq_driver_lock or convert it back to a spinlock and protect the read sections with RCU. The first step in that is moving the cpufreq_driver to use the rcu. I don't see an easy wasy to protect the cpufreq_cpu_data structure with the RCU, so I am

Re: [PATCH linux-next v8] cpufreq: convert the cpufreq_driver to use the rcu

2013-04-04 Thread Viresh Kumar
On 4 April 2013 20:23, Nathan Zimmer nzim...@sgi.com wrote: We eventually would like to remove the rwlock cpufreq_driver_lock or convert it back to a spinlock and protect the read sections with RCU. The first step in that is moving the cpufreq_driver to use the rcu. I don't see an easy wasy