Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Sep 2017 17:12:18 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r323771 - projects/powernv/powerpc/powerpc
Message-ID:  <201709191712.v8JHCI1D055205@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nwhitehorn
Date: Tue Sep 19 17:12:18 2017
New Revision: 323771
URL: https://svnweb.freebsd.org/changeset/base/323771

Log:
  Avoid going into an infinite decrementer interrupt loop if the kernel
  starts with a small or negative decrementer value.

Modified:
  projects/powernv/powerpc/powerpc/clock.c

Modified: projects/powernv/powerpc/powerpc/clock.c
==============================================================================
--- projects/powernv/powerpc/powerpc/clock.c	Tue Sep 19 16:51:51 2017	(r323770)
+++ projects/powernv/powerpc/powerpc/clock.c	Tue Sep 19 17:12:18 2017	(r323771)
@@ -141,6 +141,9 @@ decr_intr(struct trapframe *frame)
 	} else if (s->mode == 2) {
 		nticks = 1;
 		decr_et_stop(NULL);
+	} else if (s->mode == 0) {
+		/* Potemkin timer ran out without an event. Just reset it. */
+		decr_et_stop(NULL);
 	}
 
 	while (nticks-- > 0) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709191712.v8JHCI1D055205>