Module Name: src Committed By: jruoho Date: Sun Aug 22 17:45:48 UTC 2010
Modified Files: src/sys/dev/acpi: acpi_cpu_cstate.c Log Message: Use acpi_timer_read_fast() instead of acpi_timer_read_safe(). To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/sys/dev/acpi/acpi_cpu_cstate.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/acpi/acpi_cpu_cstate.c diff -u src/sys/dev/acpi/acpi_cpu_cstate.c:1.31 src/sys/dev/acpi/acpi_cpu_cstate.c:1.32 --- src/sys/dev/acpi/acpi_cpu_cstate.c:1.31 Wed Aug 18 02:01:45 2010 +++ src/sys/dev/acpi/acpi_cpu_cstate.c Sun Aug 22 17:45:48 2010 @@ -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 <jruoho...@iki.fi> @@ -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();