Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/e635fab72f36
branches:  trunk
changeset: 952916:e635fab72f36
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Feb 21 08:47:13 2021 +0000

description:
KNF consistency

diffstat:

 sys/arch/arm/arm/arm_machdep.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (41 lines):

diff -r 60bcbc1d3bd0 -r e635fab72f36 sys/arch/arm/arm/arm_machdep.c
--- a/sys/arch/arm/arm/arm_machdep.c    Sun Feb 21 08:46:28 2021 +0000
+++ b/sys/arch/arm/arm/arm_machdep.c    Sun Feb 21 08:47:13 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: arm_machdep.c,v 1.66 2021/02/21 08:46:28 skrll Exp $   */
+/*     $NetBSD: arm_machdep.c,v 1.67 2021/02/21 08:47:13 skrll Exp $   */
 
 /*
  * Copyright (c) 2001 Wasabi Systems, Inc.
@@ -80,7 +80,7 @@
 
 #include <sys/param.h>
 
-__KERNEL_RCSID(0, "$NetBSD: arm_machdep.c,v 1.66 2021/02/21 08:46:28 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arm_machdep.c,v 1.67 2021/02/21 08:47:13 skrll Exp $");
 
 #include <sys/atomic.h>
 #include <sys/cpu.h>
@@ -310,12 +310,14 @@
 struct lwp *
 arm_curlwp(void)
 {
+
        return curlwp;
 }
 
 struct cpu_info *
 arm_curcpu(void)
 {
+
        return curcpu();
 }
 #endif
@@ -340,6 +342,7 @@
 bool
 cpu_kpreempt_disabled(void)
 {
+
        return curcpu()->ci_cpl != IPL_NONE;
 }
 #endif /* __HAVE_PREEMPTION */



Home | Main Index | Thread Index | Old Index