Date: Mon, 10 Jan 2011 20:26:36 +0000 (UTC) From: Jung-uk Kim <jkim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r217236 - head/sys/dev/acpica/Osd Message-ID: <201101102026.p0AKQaqG092461@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101102026.p0AKQaqG092461>