diff options
author | 2009-03-10 16:27:48 +0900 | |
---|---|---|
committer | 2009-03-10 16:27:48 +0900 | |
commit | e01009833e22dc87075d770554b34d797843ed23 (patch) | |
tree | 63462a60b24fd018c94c51ee882aa8848a7accdf /include/linux/kernel.h | |
parent | linker script: define __per_cpu_load on all SMP capable archs (diff) | |
download | wireguard-linux-e01009833e22dc87075d770554b34d797843ed23.tar.xz wireguard-linux-e01009833e22dc87075d770554b34d797843ed23.zip |
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: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux/kernel.h')
0 files changed, 0 insertions, 0 deletions