Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/acpi Export also the delta function.
details: https://anonhg.NetBSD.org/src/rev/86001369faab
branches: trunk
changeset: 756286:86001369faab
user: jruoho <jruoho%NetBSD.org@localhost>
date: Sat Jul 10 19:37:38 2010 +0000
description:
Export also the delta function.
diffstat:
sys/dev/acpi/acpi_timer.c | 13 ++++++-------
sys/dev/acpi/acpi_timer.h | 11 ++++++-----
2 files changed, 12 insertions(+), 12 deletions(-)
diffs (79 lines):
diff -r b36a36663efd -r 86001369faab sys/dev/acpi/acpi_timer.c
--- a/sys/dev/acpi/acpi_timer.c Sat Jul 10 17:29:12 2010 +0000
+++ b/sys/dev/acpi/acpi_timer.c Sat Jul 10 19:37:38 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_timer.c,v 1.17 2010/07/10 13:08:09 jruoho Exp $ */
+/* $NetBSD: acpi_timer.c,v 1.18 2010/07/10 19:37:38 jruoho Exp $ */
/*-
* Copyright (c) 2006 Matthias Drochner <drochner%NetBSD.org@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_timer.c,v 1.17 2010/07/10 13:08:09 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_timer.c,v 1.18 2010/07/10 19:37:38 jruoho Exp $");
#include <sys/types.h>
#include <sys/systm.h>
@@ -40,7 +40,6 @@
#include <machine/acpi_machdep.h>
static int acpitimer_test(void);
-static uint32_t acpitimer_delta(uint32_t, uint32_t);
static struct timecounter acpi_timecounter = {
acpitimer_read_safe,
@@ -63,7 +62,7 @@
res = AcpiGetTimerResolution(&bits);
if (res != AE_OK)
- return (-1);
+ return -1;
if (bits == 32)
acpi_timecounter.tc_counter_mask = 0xffffffff;
@@ -103,8 +102,8 @@
}
/*
- * Some chipsets (PIIX4 variants) do not latch correctly; there
- * is a chance that a transition is hit.
+ * Some chipsets (PIIX4 variants) do not latch correctly;
+ * there is a chance that a transition is hit.
*/
u_int
acpitimer_read_safe(struct timecounter *tc)
@@ -125,7 +124,7 @@
return t2;
}
-static uint32_t
+uint32_t
acpitimer_delta(uint32_t end, uint32_t start)
{
const u_int mask = acpi_timecounter.tc_counter_mask;
diff -r b36a36663efd -r 86001369faab sys/dev/acpi/acpi_timer.h
--- a/sys/dev/acpi/acpi_timer.h Sat Jul 10 17:29:12 2010 +0000
+++ b/sys/dev/acpi/acpi_timer.h Sat Jul 10 19:37:38 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_timer.h,v 1.5 2010/07/10 13:08:09 jruoho Exp $ */
+/* $NetBSD: acpi_timer.h,v 1.6 2010/07/10 19:37:38 jruoho Exp $ */
/*-
* Copyright (c) 2006 Matthias Drochner <drochner%NetBSD.org@localhost>
@@ -29,9 +29,10 @@
#ifndef _SYS_DEV_ACPI_ACPI_TIMER_H
#define _SYS_DEV_ACPI_ACPI_TIMER_H
-int acpitimer_init(struct acpi_softc *);
-int acpitimer_detach(void);
-u_int acpitimer_read_safe(struct timecounter *);
-u_int acpitimer_read_fast(struct timecounter *);
+int acpitimer_init(struct acpi_softc *);
+int acpitimer_detach(void);
+u_int acpitimer_read_safe(struct timecounter *);
+u_int acpitimer_read_fast(struct timecounter *);
+uint32_t acpitimer_delta(uint32_t, uint32_t);
#endif /* !_SYS_DEV_ACPI_ACPI_TIMER_H */
Home |
Main Index |
Thread Index |
Old Index