Re: [PATCH 2/3] x86: replace percpu_xxx funcs with this_cpu_xxx

From: Alex Shi
Date: Fri May 11 2012 - 04:19:37 EST


On 05/11/2012 04:00 PM, Alex Shi wrote:


> diff --git a/arch/x86/include/asm/compat.h b/arch/x86/include/asm/compat.h
> index d680579..7cf3f49 100644
> --- a/arch/x86/include/asm/compat.h
> +++ b/arch/x86/include/asm/compat.h
> @@ -229,7 +229,7 @@ static inline void __user *arch_compat_alloc_user_space(long len)
> sp = task_pt_regs(current)->sp;
> } else {
> /* -128 for the x32 ABI redzone */
> - sp = percpu_read(old_rsp) - 128;
> + sp = __this_cpu_read(old_rsp) - 128;
> }
>


oh, sorry, this line is better to change as this_cpu_read(), so, update
the patch

---