diff options
author | Tejun Heo <tj@kernel.org> | 2009-12-07 20:02:12 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2009-12-07 20:02:12 -0500 |
commit | 50de1a8ef18da0cfff97543315b4e042e8bb7c83 (patch) | |
tree | 86056d1aef0e83d7839a8350c9e6109b80b3cfa5 /include/linux/percpu.h | |
parent | 390dfd95c5df1ab3921dd388d11b2aee332c3f2c (diff) | |
parent | ee0a6efc1897ef817e177e669f5c5d211194df24 (diff) |
Merge branch 'for-linus' into for-next
Conflicts:
mm/percpu.c
Diffstat (limited to 'include/linux/percpu.h')
-rw-r--r-- | include/linux/percpu.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/percpu.h b/include/linux/percpu.h index 522f421ec213..cf5efbcf716c 100644 --- a/include/linux/percpu.h +++ b/include/linux/percpu.h | |||
@@ -130,6 +130,7 @@ extern int __init pcpu_page_first_chunk(size_t reserved_size, | |||
130 | extern void *__alloc_reserved_percpu(size_t size, size_t align); | 130 | extern void *__alloc_reserved_percpu(size_t size, size_t align); |
131 | extern void *__alloc_percpu(size_t size, size_t align); | 131 | extern void *__alloc_percpu(size_t size, size_t align); |
132 | extern void free_percpu(void *__pdata); | 132 | extern void free_percpu(void *__pdata); |
133 | extern phys_addr_t per_cpu_ptr_to_phys(void *addr); | ||
133 | 134 | ||
134 | #ifndef CONFIG_HAVE_SETUP_PER_CPU_AREA | 135 | #ifndef CONFIG_HAVE_SETUP_PER_CPU_AREA |
135 | extern void __init setup_per_cpu_areas(void); | 136 | extern void __init setup_per_cpu_areas(void); |
@@ -155,6 +156,11 @@ static inline void free_percpu(void *p) | |||
155 | kfree(p); | 156 | kfree(p); |
156 | } | 157 | } |
157 | 158 | ||
159 | static inline phys_addr_t per_cpu_ptr_to_phys(void *addr) | ||
160 | { | ||
161 | return __pa(addr); | ||
162 | } | ||
163 | |||
158 | static inline void __init setup_per_cpu_areas(void) { } | 164 | static inline void __init setup_per_cpu_areas(void) { } |
159 | 165 | ||
160 | static inline void *pcpu_lpage_remapped(void *kaddr) | 166 | static inline void *pcpu_lpage_remapped(void *kaddr) |