Module Name:    src
Committed By:   skrll
Date:           Mon Dec  4 08:24:35 UTC 2017

Modified Files:
        src/sys/arch/arm/arm32: cortex_pmc.c

Log Message:
KNF


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/arm/arm32/cortex_pmc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/arm/arm32/cortex_pmc.c
diff -u src/sys/arch/arm/arm32/cortex_pmc.c:1.4 src/sys/arch/arm/arm32/cortex_pmc.c:1.5
--- src/sys/arch/arm/arm32/cortex_pmc.c:1.4	Thu Aug 13 02:25:07 2015
+++ src/sys/arch/arm/arm32/cortex_pmc.c	Mon Dec  4 08:24:35 2017
@@ -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 @@ delay(u_int arg)
 	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 {

Reply via email to