summaryrefslogtreecommitdiff
path: root/arch/x86
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-08-14 05:07:32 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-08-16 01:39:37 +0300
commit5d87f493ddb1b86a0569fa3c4037fa9efc0c7183 (patch)
tree93499a4af80fad9a0b5210a330fa38d1bac82c93 /arch/x86
parent947d2c2cd3340d11a1737d3f4781170cc3a4b74f (diff)
downloadlinux-5d87f493ddb1b86a0569fa3c4037fa9efc0c7183.tar.xz
x86/power/64: Use __pa() for physical address computation
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 <rafael.j.wysocki@intel.com> Acked-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/power/hibernate_64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/power/hibernate_64.c b/arch/x86/power/hibernate_64.c
index a3e3ccc87138..9634557a5444 100644
--- 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;
}