Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/acpi/acpica/Osd Correct calculation of timeout.
details: https://anonhg.NetBSD.org/src/rev/e6bb5fa7b266
branches: trunk
changeset: 550649:e6bb5fa7b266
user: kochi <kochi%NetBSD.org@localhost>
date: Fri Aug 15 17:07:04 2003 +0000
description:
Correct calculation of timeout.
diffstat:
sys/dev/acpi/acpica/Osd/OsdSchedule.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r c15b5d95ef43 -r e6bb5fa7b266 sys/dev/acpi/acpica/Osd/OsdSchedule.c
--- a/sys/dev/acpi/acpica/Osd/OsdSchedule.c Fri Aug 15 16:58:15 2003 +0000
+++ b/sys/dev/acpi/acpica/Osd/OsdSchedule.c Fri Aug 15 17:07:04 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: OsdSchedule.c,v 1.9 2003/08/03 08:19:58 kochi Exp $ */
+/* $NetBSD: OsdSchedule.c,v 1.10 2003/08/15 17:07:04 kochi Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: OsdSchedule.c,v 1.9 2003/08/03 08:19:58 kochi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: OsdSchedule.c,v 1.10 2003/08/15 17:07:04 kochi Exp $");
#include <sys/param.h>
#include <sys/malloc.h>
@@ -166,7 +166,7 @@
ACPI_FUNCTION_TRACE(__FUNCTION__);
- timo = (Seconds * hz) + (Milliseconds / (1000 * hz));
+ timo = Seconds * hz + Milliseconds * hz / 1000;
if (timo == 0)
timo = 1;
Home |
Main Index |
Thread Index |
Old Index