From owner-svn-src-projects@freebsd.org Tue Sep 19 17:12:19 2017 Return-Path: Delivered-To: svn-src-projects@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 62075E1E280 for ; Tue, 19 Sep 2017 17:12:19 +0000 (UTC) (envelope-from nwhitehorn@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3117A635CA; Tue, 19 Sep 2017 17:12:19 +0000 (UTC) (envelope-from nwhitehorn@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v8JHCIGo055206; Tue, 19 Sep 2017 17:12:18 GMT (envelope-from nwhitehorn@FreeBSD.org) Received: (from nwhitehorn@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v8JHCI1D055205; Tue, 19 Sep 2017 17:12:18 GMT (envelope-from nwhitehorn@FreeBSD.org) Message-Id: <201709191712.v8JHCI1D055205@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: nwhitehorn set sender to nwhitehorn@FreeBSD.org using -f From: Nathan Whitehorn Date: Tue, 19 Sep 2017 17:12:18 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r323771 - projects/powernv/powerpc/powerpc X-SVN-Group: projects X-SVN-Commit-Author: nwhitehorn X-SVN-Commit-Paths: projects/powernv/powerpc/powerpc X-SVN-Commit-Revision: 323771 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Sep 2017 17:12:19 -0000 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) {