diff options
author | jkim <jkim@FreeBSD.org> | 2013-01-02 19:01:21 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2013-01-02 19:01:21 +0000 |
commit | 8f7c8be022add76a280165a4247448f1fcd77631 (patch) | |
tree | 434e706ece73a93073f350c91cd35ed7d7e98811 /source/components/hardware/hwtimer.c | |
parent | 526bfcf905004d9b67338a445cb661a63c3de018 (diff) | |
download | FreeBSD-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.c | 7 |
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); |