summaryrefslogtreecommitdiffstats
path: root/source/components/hardware/hwtimer.c
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2013-01-02 19:01:21 +0000
committerjkim <jkim@FreeBSD.org>2013-01-02 19:01:21 +0000
commit8f7c8be022add76a280165a4247448f1fcd77631 (patch)
tree434e706ece73a93073f350c91cd35ed7d7e98811 /source/components/hardware/hwtimer.c
parent526bfcf905004d9b67338a445cb661a63c3de018 (diff)
downloadFreeBSD-src-8f7c8be022add76a280165a4247448f1fcd77631.zip
FreeBSD-src-8f7c8be022add76a280165a4247448f1fcd77631.tar.gz
Import ACPICA 20121220.
Diffstat (limited to 'source/components/hardware/hwtimer.c')
-rw-r--r--source/components/hardware/hwtimer.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/components/hardware/hwtimer.c b/source/components/hardware/hwtimer.c
index 44de309..79caa70 100644
--- a/source/components/hardware/hwtimer.c
+++ b/source/components/hardware/hwtimer.c
@@ -203,10 +203,11 @@ AcpiGetTimerDuration (
/*
* Compute Duration (Requires a 64-bit multiply and divide):
*
- * TimeElapsed = (DeltaTicks * 1000000) / PM_TIMER_FREQUENCY;
+ * TimeElapsed (microseconds) =
+ * (DeltaTicks * ACPI_USEC_PER_SEC) / ACPI_PM_TIMER_FREQUENCY;
*/
- Status = AcpiUtShortDivide (((UINT64) DeltaTicks) * 1000000,
- PM_TIMER_FREQUENCY, &Quotient, NULL);
+ Status = AcpiUtShortDivide (((UINT64) DeltaTicks) * ACPI_USEC_PER_SEC,
+ ACPI_PM_TIMER_FREQUENCY, &Quotient, NULL);
*TimeElapsed = (UINT32) Quotient;
return_ACPI_STATUS (Status);
OpenPOWER on IntegriCloud