Add acpitimer_detach() to eventually support acpi(4) detachment.

This commit is contained in:
dyoung 2009-04-08 00:15:45 +00:00
parent 99084a32b0
commit 5b0576e7eb
2 changed files with 10 additions and 3 deletions

View File

@ -1,7 +1,7 @@
/* $NetBSD: acpi_timer.c,v 1.13 2009/03/15 15:42:55 cegger Exp $ */
/* $NetBSD: acpi_timer.c,v 1.14 2009/04/08 00:15:45 dyoung Exp $ */
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: acpi_timer.c,v 1.13 2009/03/15 15:42:55 cegger Exp $");
__KERNEL_RCSID(0, "$NetBSD: acpi_timer.c,v 1.14 2009/04/08 00:15:45 dyoung Exp $");
#include <sys/types.h>
#include <sys/systm.h>
@ -57,6 +57,12 @@ acpitimer_init(void)
return (0);
}
int
acpitimer_detach(void)
{
return tc_detach(&acpi_timecounter);
}
static u_int
acpitimer_read_fast(struct timecounter *tc)
{

View File

@ -1,3 +1,4 @@
/* $NetBSD: acpi_timer.h,v 1.1 2006/06/21 17:47:23 drochner Exp $ */
/* $NetBSD: acpi_timer.h,v 1.2 2009/04/08 00:15:45 dyoung Exp $ */
int acpitimer_init(void);
int acpitimer_detach(void);