Skip to content
Commit e0100983 authored by Tejun Heo's avatar Tejun Heo
Browse files

percpu: make x86 addr <-> pcpu ptr conversion macros generic



Impact: generic addr <-> pcpu ptr conversion macros

There's nothing arch specific about x86 __addr_to_pcpu_ptr() and
__pcpu_ptr_to_addr().  With proper __per_cpu_load and __per_cpu_start
defined, they'll do the right thing regardless of actual layout.

Move these macros from arch/x86/include/asm/percpu.h to mm/percpu.c
and allow archs to override it as necessary.

Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 19390c4d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment