aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-generic
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2015-09-23 09:52:03 +0200
committerIngo Molnar <mingo@kernel.org>2015-09-23 09:52:03 +0200
commit4bbffe718fe1bfae6176a6fb783c1576b69338e5 (patch)
treee4d25102f0d2fa2a3480e03ba7bde45c9958511e /include/asm-generic
parentfutex: Force hot variables into a single cache line (diff)
parentlocking/lockdep: Fix hlock->pin_count reset on lock stack rebuilds (diff)
downloadlinux-dev-4bbffe718fe1bfae6176a6fb783c1576b69338e5.tar.xz
linux-dev-4bbffe718fe1bfae6176a6fb783c1576b69338e5.zip
Merge branch 'locking/urgent' into locking/core, to pick up fixes before applying new changes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/asm-generic')
-rw-r--r--include/asm-generic/memory_model.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-generic/memory_model.h b/include/asm-generic/memory_model.h
index f20f407ce45d..4b4b056a6eb0 100644
--- a/include/asm-generic/memory_model.h
+++ b/include/asm-generic/memory_model.h
@@ -73,7 +73,7 @@
* Convert a physical address to a Page Frame Number and back
*/
#define __phys_to_pfn(paddr) ((unsigned long)((paddr) >> PAGE_SHIFT))
-#define __pfn_to_phys(pfn) ((pfn) << PAGE_SHIFT)
+#define __pfn_to_phys(pfn) PFN_PHYS(pfn)
#define page_to_pfn __page_to_pfn
#define pfn_to_page __pfn_to_page