Commit e2e6ee06 authored by Len Brown's avatar Len Brown Committed by Len Brown

[ACPI] place-holder for ACPI 3.0 acpi_os_get_timer()

parent de524f14
...@@ -326,6 +326,29 @@ acpi_os_stall(u32 us) ...@@ -326,6 +326,29 @@ acpi_os_stall(u32 us)
} }
} }
/*
* Support ACPI 3.0 AML Timer operand
* Returns 64-bit free-running, monotonically increasing timer
* with 100ns granularity
*/
u64
acpi_os_get_timer (void)
{
static u64 t;
#ifdef CONFIG_HPET
/* TBD: use HPET if available */
#endif
#ifdef CONFIG_X86_PM_TIMER
/* TBD: default to PM timer if HPET was not available */
#endif
if (!t)
printk(KERN_ERR PREFIX "acpi_os_get_timer() TBD\n");
return(++t);
}
acpi_status acpi_status
acpi_os_read_port( acpi_os_read_port(
acpi_io_address port, acpi_io_address port,
......
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