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:
947d2c2
)
x86/power/64: Use __pa() for physical address computation
author
Rafael J. Wysocki
<
[email protected]
>
Sun, 14 Aug 2016 02:07:32 +0000
(
04:07
+0200)
committer
Rafael J. Wysocki
<
[email protected]
>
Mon, 15 Aug 2016 22:39:37 +0000
(
00:39
+0200)
The value of temp_level4_pgt is the physical address of the
top-level page directory, so use __pa() to compute it.
Signed-off-by: Rafael J. Wysocki <
[email protected]
>
Acked-by: Ingo Molnar <
[email protected]
>
arch/x86/power/hibernate_64.c
patch
|
blob
|
history
diff --git
a/arch/x86/power/hibernate_64.c
b/arch/x86/power/hibernate_64.c
index a3e3ccc87138a7d44e6fe12114403b25a2d4affa..9634557a544478fdde15eff06d8fa120ffce894d 100644
(file)
--- a/
arch/x86/power/hibernate_64.c
+++ b/
arch/x86/power/hibernate_64.c
@@
-113,7
+113,7
@@
static int set_up_temporary_mappings(void)
return result;
}
- temp_level4_pgt =
(unsigned long)pgd - __PAGE_OFFSET
;
+ temp_level4_pgt =
__pa(pgd)
;
return 0;
}