Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/arm32 KNF



details:   https://anonhg.NetBSD.org/src/rev/915160f3f3c4
branches:  trunk
changeset: 357938:915160f3f3c4
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Dec 04 08:24:35 2017 +0000

description:
KNF

diffstat:

 sys/arch/arm/arm32/cortex_pmc.c |  15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

diffs (38 lines):

diff -r cfb7f362223d -r 915160f3f3c4 sys/arch/arm/arm32/cortex_pmc.c
--- a/sys/arch/arm/arm32/cortex_pmc.c   Mon Dec 04 03:08:34 2017 +0000
+++ b/sys/arch/arm/arm32/cortex_pmc.c   Mon Dec 04 08:24:35 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cortex_pmc.c,v 1.4 2015/08/13 02:25:07 knakahara Exp $ */
+/*     $NetBSD: cortex_pmc.c,v 1.5 2017/12/04 08:24:35 skrll Exp $     */
 
 /* Copyright (c) 2007 Microsoft
  * All rights reserved.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-/* __KERNEL_RCSID(0, "$NetBSD: cortex_pmc.c,v 1.4 2015/08/13 02:25:07 knakahara Exp $"); */
+/* __KERNEL_RCSID(0, "$NetBSD: cortex_pmc.c,v 1.5 2017/12/04 08:24:35 skrll Exp $"); */
 #include "opt_perfctrs.h"
 #include <sys/types.h>
 #include <sys/param.h>
@@ -97,11 +97,16 @@
        while (arg > usecs) {
                cur = armreg_pmccntr_read();
 
-               /* overflow flag is moved to a separate register
-                  and is not read from PMC Control Register */
+               /*
+                * overflow flag is moved to a separate register
+                * and is not read from PMC Control Register
+                */
                ctrl = armreg_pmovsr_read();
                if (ctrl & CORTEX_CNTOFL_C) {
-                 /* Reset overflow flag for cycle counter in overflow register */
+                       /*
+                        * Reset overflow flag for cycle counter in overflow
+                        * register
+                        */
                        armreg_pmovsr_write(CORTEX_CNTOFL_C);
                        delta += (cur + (counts_per_wrap - last));
                } else {



Home | Main Index | Thread Index | Old Index