projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b034b0
)
percpu: add missing per_cpu_ptr_to_phys() definition for UP
author
Tejun Heo
<
[email protected]
>
Tue, 1 Dec 2009 23:36:58 +0000
(08:36 +0900)
committer
Tejun Heo
<
[email protected]
>
Tue, 1 Dec 2009 23:36:58 +0000
(08:36 +0900)
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 <
[email protected]
>
Cc: Vivek Goyal <
[email protected]
>
Reported-by: Randy Dunlap <
[email protected]
>
include/linux/percpu.h
patch
|
blob
|
history
diff --git
a/include/linux/percpu.h
b/include/linux/percpu.h
index 6ac984fa34f807a2d6f1efb20399851028cff629..8e4ead6435fbd07099e78b582859f47e712b35e4 100644
(file)
--- a/
include/linux/percpu.h
+++ b/
include/linux/percpu.h
@@
-180,6
+180,11
@@
static inline void free_percpu(void *p)
kfree(p);
}
+static inline phys_addr_t per_cpu_ptr_to_phys(void *addr)
+{
+ return __pa(addr);
+}
+
static inline void __init setup_per_cpu_areas(void) { }
static inline void *pcpu_lpage_remapped(void *kaddr)