WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH6/6] cpuidle: redefine cpumask_lock as rwlock_t

>>> On 17.06.10 at 09:38, "Wei, Gang" <gang.wei@xxxxxxxxx> wrote:
> cpuidle: redefine cpumask_lock as rwlock_t
> 
> Multiple cpus clear hpet channel cpumask simultaneously is ok. So we can 
> change the cpumask_lock to rwlock_t.

Now this I think really needs a comment in the code: You use a read
lock on the writer side and a write lock on the reader side - quite the
opposite of normal behavior.

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>