Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-3-0]: src/sys/arch/xen/xen Pull up following revision(s) (request...
details: https://anonhg.NetBSD.org/src/rev/b71b2a5b166d
branches: netbsd-3-0
changeset: 579298:b71b2a5b166d
user: ghen <ghen%NetBSD.org@localhost>
date: Fri Sep 08 11:12:34 2006 +0000
description:
Pull up following revision(s) (requested by jld in ticket #1506):
sys/arch/xen/xen/clock.c: revision 1.26 via patch
Fix accidentally unsigned comparison, which was causing the timer event
handler to run ~forever in the face of slightly unexpected input from
Xen (system_time apparently going backwards). Pointed out by kardel@.
diffstat:
sys/arch/xen/xen/clock.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 4477bf6ad81a -r b71b2a5b166d sys/arch/xen/xen/clock.c
--- a/sys/arch/xen/xen/clock.c Fri Sep 08 09:33:40 2006 +0000
+++ b/sys/arch/xen/xen/clock.c Fri Sep 08 11:12:34 2006 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: clock.c,v 1.9.2.4 2005/06/29 12:23:27 tron Exp $ */
+/* $NetBSD: clock.c,v 1.9.2.4.2.1 2006/09/08 11:12:34 ghen Exp $ */
/*
*
@@ -34,7 +34,7 @@
#include "opt_xen.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.9.2.4 2005/06/29 12:23:27 tron Exp $");
+__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.9.2.4.2.1 2006/09/08 11:12:34 ghen Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -256,7 +256,7 @@
delta = (int64_t)(shadow_system_time + get_tsc_offset_ns() -
processed_system_time);
- while (delta >= NS_PER_TICK) {
+ while (delta >= (int64_t)NS_PER_TICK) {
if (ci->ci_feature_flags & CPUID_TSC) {
if (
#if defined(MULTIPROCESSOR)
Home |
Main Index |
Thread Index |
Old Index