Commit 0c7b8d69 authored by Len Brown's avatar Len Brown Committed by Len Brown

[ACPI] firmware wakeup address is physical, not virtual (David Shaohua Li)

http://bugzilla.kernel.org/show_bug.cgi?id=3390
parent ae7cb441
/*
* sleep.c - ACPI sleep support.
*
* Copyright (c) 2004 David Shaohua Li <shaohua.li@intel.com>
* Copyright (c) 2000-2003 Patrick Mochel
* Copyright (c) 2003 Open Source Development Lab
*
......@@ -13,6 +14,7 @@
#include <linux/dmi.h>
#include <linux/device.h>
#include <linux/suspend.h>
#include <asm/io.h>
#include <acpi/acpi_bus.h>
#include <acpi/acpi_drivers.h>
#include "sleep.h"
......@@ -56,7 +58,8 @@ static int acpi_pm_prepare(u32 pm_state)
if (!acpi_wakeup_address)
return -EFAULT;
acpi_set_firmware_waking_vector(
(acpi_physical_address) acpi_wakeup_address);
(acpi_physical_address) virt_to_phys(
(void *)acpi_wakeup_address));
}
ACPI_FLUSH_CPU_CACHE();
acpi_enable_wakeup_device_prep(acpi_state);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment