projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
933685c
)
xen: add page_to_mfn()
author
David Vrabel
<david.vrabel@citrix.com>
Tue, 13 Jan 2015 17:16:42 +0000
(17:16 +0000)
committer
David S. Miller
<davem@davemloft.net>
Wed, 14 Jan 2015 05:22:00 +0000
(
00:22
-0500)
pfn_to_mfn(page_to_pfn(p)) is a common use case so add a generic
helper for it.
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/xen/page.h
patch
|
blob
|
blame
|
history
diff --git
a/include/xen/page.h
b/include/xen/page.h
index 12765b6f9517ee6169d73ba667fb86d4ce57a016..c5ed20bb3fe96d5f309c5299a55a7ba3b7a140bd 100644
(file)
--- a/
include/xen/page.h
+++ b/
include/xen/page.h
@@
-3,6
+3,11
@@
#include <asm/xen/page.h>
+static inline unsigned long page_to_mfn(struct page *page)
+{
+ return pfn_to_mfn(page_to_pfn(page));
+}
+
struct xen_memory_region {
phys_addr_t start;
phys_addr_t size;