Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/acpi Use acpi_timer_read_fast() instead of acpi_time...
details: https://anonhg.NetBSD.org/src/rev/35efcf61ec3e
branches: trunk
changeset: 757275:35efcf61ec3e
user: jruoho <jruoho%NetBSD.org@localhost>
date: Sun Aug 22 17:45:48 2010 +0000
description:
Use acpi_timer_read_fast() instead of acpi_timer_read_safe().
diffstat:
sys/dev/acpi/acpi_cpu_cstate.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r e8bce4d5d6ff -r 35efcf61ec3e sys/dev/acpi/acpi_cpu_cstate.c
--- a/sys/dev/acpi/acpi_cpu_cstate.c Sun Aug 22 14:12:10 2010 +0000
+++ b/sys/dev/acpi/acpi_cpu_cstate.c Sun Aug 22 17:45:48 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_cpu_cstate.c,v 1.31 2010/08/18 02:01:45 jruoho Exp $ */
+/* $NetBSD: acpi_cpu_cstate.c,v 1.32 2010/08/22 17:45:48 jruoho Exp $ */
/*-
* Copyright (c) 2010 Jukka Ruohonen <jruohonen%iki.fi@localhost>
@@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_cpu_cstate.c,v 1.31 2010/08/18 02:01:45 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_cpu_cstate.c,v 1.32 2010/08/22 17:45:48 jruoho Exp $");
#include <sys/param.h>
#include <sys/cpu.h>
@@ -749,7 +749,7 @@
struct acpicpu_cstate *cs = &sc->sc_cstate[state];
uint32_t end, start, val;
- start = acpitimer_read_safe(NULL);
+ start = acpitimer_read_fast(NULL);
switch (cs->cs_method) {
@@ -769,7 +769,7 @@
cs->cs_evcnt.ev_count++;
- end = acpitimer_read_safe(NULL);
+ end = acpitimer_read_fast(NULL);
sc->sc_cstate_sleep = hztoms(acpitimer_delta(end, start)) * 1000;
acpi_md_OsEnableInterrupt();
Home |
Main Index |
Thread Index |
Old Index