svn commit: r217236 - head/sys/dev/acpica/Osd
Jung-uk Kim
jkim at FreeBSD.org
Mon Jan 10 20:26:36 UTC 2011
Author: jkim
Date: Mon Jan 10 20:26:36 2011
New Revision: 217236
URL: http://svn.freebsd.org/changeset/base/217236
Log:
Prefer KASSERT(9) over panic(9) as it was never seen in reality.
Modified:
head/sys/dev/acpica/Osd/OsdSchedule.c
Modified: head/sys/dev/acpica/Osd/OsdSchedule.c
==============================================================================
--- head/sys/dev/acpica/Osd/OsdSchedule.c Mon Jan 10 19:59:20 2011 (r217235)
+++ head/sys/dev/acpica/Osd/OsdSchedule.c Mon Jan 10 20:26:36 2011 (r217236)
@@ -245,8 +245,7 @@ AcpiOsGetTimer(void)
UINT64 t;
/* XXX During early boot there is no (decent) timer available yet. */
- if (cold)
- panic("acpi: timer op not yet supported during boot");
+ KASSERT(cold == 0, ("acpi: timer op not yet supported during boot"));
binuptime(&bt);
t = ((UINT64)10000000 * (uint32_t)(bt.frac >> 32)) >> 32;
More information about the svn-src-head
mailing list