Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/ibm4xx Simplify and correct stale comment; ...



details:   https://anonhg.NetBSD.org/src/rev/7b0c33b827b0
branches:  trunk
changeset: 949846:7b0c33b827b0
user:      rin <rin%NetBSD.org@localhost>
date:      Mon Jan 18 04:30:12 2021 +0000

description:
Simplify and correct stale comment; nticks-th hardclock() had no longer
been special since rev 1.24:

http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/powerpc/ibm4xx/clock.c#rev1.24

No functional changes intended.

diffstat:

 sys/arch/powerpc/ibm4xx/clock.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (31 lines):

diff -r 0537a7988de1 -r 7b0c33b827b0 sys/arch/powerpc/ibm4xx/clock.c
--- a/sys/arch/powerpc/ibm4xx/clock.c   Mon Jan 18 03:35:11 2021 +0000
+++ b/sys/arch/powerpc/ibm4xx/clock.c   Mon Jan 18 04:30:12 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clock.c,v 1.29 2020/07/06 10:31:23 rin Exp $   */
+/*     $NetBSD: clock.c,v 1.30 2021/01/18 04:30:12 rin Exp $   */
 /*      $OpenBSD: clock.c,v 1.3 1997/10/13 13:42:53 pefo Exp $  */
 
 /*
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.29 2020/07/06 10:31:23 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.30 2021/01/18 04:30:12 rin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ppcarch.h"
@@ -155,11 +155,9 @@
 
                /*
                 * Do standard timer interrupt stuff.
-                * Do softclock stuff only on the last iteration.
                 */
-               while (--nticks > 0)
+               while (nticks-- > 0)
                        hardclock(frame);
-               hardclock(frame);
        }
        splx(pcpl);
 }



Home | Main Index | Thread Index | Old Index