Module Name:    src
Committed By:   skrll
Date:           Sat Jul 29 06:59:47 UTC 2023

Modified Files:
        src/sys/arch/riscv/include: cpu.h

Log Message:
Slight reformatting. NFCI.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/riscv/include/cpu.h

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/riscv/include/cpu.h
diff -u src/sys/arch/riscv/include/cpu.h:1.12 src/sys/arch/riscv/include/cpu.h:1.13
--- src/sys/arch/riscv/include/cpu.h:1.12	Mon Jun 12 19:04:14 2023
+++ src/sys/arch/riscv/include/cpu.h	Sat Jul 29 06:59:47 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.12 2023/06/12 19:04:14 skrll Exp $ */
+/* $NetBSD: cpu.h,v 1.13 2023/07/29 06:59:47 skrll Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -86,23 +86,23 @@ struct cpu_info {
 	struct pmap_tlb_info *ci_tlb_info;
 
 #ifdef MULTIPROCESSOR
-
 	volatile u_long ci_flags;
+#define	CPUF_PRIMARY	__BIT(0)		/* CPU is primary CPU */
+#define	CPUF_PRESENT	__BIT(1)		/* CPU is present */
+#define	CPUF_RUNNING	__BIT(2)		/* CPU is running */
+#define	CPUF_PAUSED	__BIT(3)		/* CPU is paused */
+#define	CPUF_USERPMAP	__BIT(4)		/* CPU has a user pmap activated */
+
 	volatile u_long ci_request_ipis;
-					/* bitmask of IPIs requested */
-	u_long ci_active_ipis;	/* bitmask of IPIs being serviced */
+						/* bitmask of IPIs requested */
+	u_long ci_active_ipis;			/* bitmask of IPIs being serviced */
 
-	struct evcnt ci_evcnt_all_ipis;	/* aggregated IPI counter */
+	struct evcnt ci_evcnt_all_ipis;		/* aggregated IPI counter */
 	struct evcnt ci_evcnt_per_ipi[NIPIS];	/* individual IPI counters */
 	struct evcnt ci_evcnt_synci_onproc_rqst;
 	struct evcnt ci_evcnt_synci_deferred_rqst;
 	struct evcnt ci_evcnt_synci_ipi_rqst;
 
-#define	CPUF_PRIMARY	__BIT(0)		/* CPU is primary CPU */
-#define	CPUF_PRESENT	__BIT(1)		/* CPU is present */
-#define	CPUF_RUNNING	__BIT(2)		/* CPU is running */
-#define	CPUF_PAUSED	__BIT(3)		/* CPU is paused */
-#define	CPUF_USERPMAP	__BIT(4)		/* CPU has a user pmap activated */
 	kcpuset_t *ci_shootdowncpus;
 	kcpuset_t *ci_multicastcpus;
 	kcpuset_t *ci_watchcpus;

Reply via email to