diff options
author | Tejun Heo <tj@kernel.org> | 2009-12-01 18:36:58 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2009-12-01 18:36:58 -0500 |
commit | ee0a6efc1897ef817e177e669f5c5d211194df24 (patch) | |
tree | 6a0e8f5999e15332c29a0bbe5c61cd8f69f2d4b6 | |
parent | 3b034b0d084221596bf35c8d893e1d4d5477b9cc (diff) |
percpu: add missing per_cpu_ptr_to_phys() definition for UP
Commit 3b034b0d084221596bf35c8d893e1d4d5477b9cc implemented
per_cpu_ptr_to_phys() but forgot to add UP definition. Add UP
definition which is simple wrapper around __pa().
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Vivek Goyal <vgoyal@redhat.com>
Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
-rw-r--r-- | include/linux/percpu.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/percpu.h b/include/linux/percpu.h index 6ac984fa34f8..8e4ead6435fb 100644 --- a/include/linux/percpu.h +++ b/include/linux/percpu.h | |||
@@ -180,6 +180,11 @@ static inline void free_percpu(void *p) | |||
180 | kfree(p); | 180 | kfree(p); |
181 | } | 181 | } |
182 | 182 | ||
183 | static inline phys_addr_t per_cpu_ptr_to_phys(void *addr) | ||
184 | { | ||
185 | return __pa(addr); | ||
186 | } | ||
187 | |||
183 | static inline void __init setup_per_cpu_areas(void) { } | 188 | static inline void __init setup_per_cpu_areas(void) { } |
184 | 189 | ||
185 | static inline void *pcpu_lpage_remapped(void *kaddr) | 190 | static inline void *pcpu_lpage_remapped(void *kaddr) |