Module Name: src Committed By: christos Date: Sun Nov 12 02:59:55 UTC 2017
Modified Files: src/sys/dev/acpi/acpica: OsdSchedule.c Log Message: Provide a primitive incrementing counter if we are call since the new Acpi dispatcher requires us to have one when we are cold (shudder). To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/sys/dev/acpi/acpica/OsdSchedule.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/acpica/OsdSchedule.c diff -u src/sys/dev/acpi/acpica/OsdSchedule.c:1.18 src/sys/dev/acpi/acpica/OsdSchedule.c:1.19 --- src/sys/dev/acpi/acpica/OsdSchedule.c:1.18 Sat Jan 9 16:14:42 2016 +++ src/sys/dev/acpi/acpica/OsdSchedule.c Sat Nov 11 21:59:55 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: OsdSchedule.c,v 1.18 2016/01/09 21:14:42 christos Exp $ */ +/* $NetBSD: OsdSchedule.c,v 1.19 2017/11/12 02:59:55 christos Exp $ */ /* * Copyright 2001 Wasabi Systems, Inc. @@ -42,7 +42,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: OsdSchedule.c,v 1.18 2016/01/09 21:14:42 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: OsdSchedule.c,v 1.19 2017/11/12 02:59:55 christos Exp $"); #include <sys/param.h> #include <sys/malloc.h> @@ -168,12 +168,14 @@ AcpiOsStall(UINT32 Microseconds) UINT64 AcpiOsGetTimer(void) { + static UINT64 xt; struct timeval tv; UINT64 t; /* XXX During early boot there is no (decent) timer available yet. */ - if (cold) - panic("acpi: timer op not yet supported during boot"); + if (cold) { + return xt += 100; + } microtime(&tv); t = (UINT64)10 * tv.tv_usec;