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

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

 



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?

--
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]