Re: percpu: Implement this_cpu_add,sub,dec,inc_return

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

 



Le vendredi 19 novembre 2010 Ã 09:42 -0600, Christoph Lameter a Ãcrit :
> On Wed, 17 Nov 2010, Eric Dumazet wrote:
> 
> > diff --git a/include/linux/highmem.h b/include/linux/highmem.h
> > index b676c58..bb5db26 100644
> > --- a/include/linux/highmem.h
> > +++ b/include/linux/highmem.h
> > @@ -91,7 +91,7 @@ static inline int kmap_atomic_idx_push(void)
> >
> >  static inline int kmap_atomic_idx(void)
> >  {
> > -	return __get_cpu_var(__kmap_atomic_idx) - 1;
> > +	return __this_cpu_read(__kmap_atomic_idx) - 1;
> >  }
> >
> >  static inline int kmap_atomic_idx_pop(void)
> 
> This isnt a use case for this_cpu_dec right? Seems that your message was
> cut off?
> 


I wanted to show you the file were it was possible to use this_cpu_{dec|
inc}_return()


My patch on kmap_atomic_idx() doesnt need your new functions ;)

Thanks


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxxx  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]