Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/riscv/include Slight reformatting. NFCI.



details:   https://anonhg.NetBSD.org/src/rev/3dc755a607bc
branches:  trunk
changeset: 378275:3dc755a607bc
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Jul 29 06:59:47 2023 +0000

description:
Slight reformatting. NFCI.

diffstat:

 sys/arch/riscv/include/cpu.h |  20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diffs (42 lines):

diff -r 14e18b24ee48 -r 3dc755a607bc sys/arch/riscv/include/cpu.h
--- a/sys/arch/riscv/include/cpu.h      Sat Jul 29 06:50:47 2023 +0000
+++ b/sys/arch/riscv/include/cpu.h      Sat Jul 29 06:59:47 2023 +0000
@@ -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_flags;
        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;



Home | Main Index | Thread Index | Old Index