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>