Re: [PATCH] RT: update rcurefs for RT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2005-09-30 at 10:34 +0200, Ingo Molnar wrote:
> * Thomas Gleixner <[email protected]> wrote:
> 
> > On Thu, 2005-09-29 at 08:20 -0700, Daniel Walker wrote:
> > > +static inline void init_rcurefs(void)
> > > +{
> > > +	int i;
> > > +	for (i=0; i < RCUREF_HASH_SIZE; i++) 
> > > +		__rcuref_hash[i] = SPIN_LOCK_UNLOCKED(__rcuref_hash[i]);
> > 
> > Maybe a simple 
> > 
> > 	spin_lock_init(&__rcuref_hash[i]);
> > 
> > would work all over the place ?
> 
> yep.

The patch isn't needed if you accept Nick's cmpxchg() patches ..

Daniel

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux