Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Add heading comment for private localcount_adjust s...



details:   https://anonhg.NetBSD.org/src/rev/21a0d7d2f671
branches:  trunk
changeset: 354342:21a0d7d2f671
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Jun 12 21:08:34 2017 +0000

description:
Add heading comment for private localcount_adjust subroutine.

diffstat:

 sys/kern/subr_localcount.c |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r ebd3c9a03ca2 -r 21a0d7d2f671 sys/kern/subr_localcount.c
--- a/sys/kern/subr_localcount.c        Mon Jun 12 21:07:14 2017 +0000
+++ b/sys/kern/subr_localcount.c        Mon Jun 12 21:08:34 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_localcount.c,v 1.5 2017/06/12 21:07:14 riastradh Exp $    */
+/*     $NetBSD: subr_localcount.c,v 1.6 2017/06/12 21:08:34 riastradh Exp $    */
 
 /*-
  * Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -44,7 +44,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_localcount.c,v 1.5 2017/06/12 21:07:14 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_localcount.c,v 1.6 2017/06/12 21:08:34 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/localcount.h>
@@ -167,6 +167,12 @@
        mutex_exit(interlock);
 }
 
+/*
+ * localcount_adjust(lc, delta)
+ *
+ *     Add delta -- positive or negative -- to the local CPU's count
+ *     for lc.
+ */
 static void
 localcount_adjust(struct localcount *lc, int delta)
 {



Home | Main Index | Thread Index | Old Index