Module Name: src
Committed By: skrll
Date: Sun Jul 23 07:20:45 UTC 2023
Modified Files:
src/sys/arch/mips/include: cpu.h
Log Message:
USE __BIT() for CPUF_* flags. NFCI.
To generate a diff of this commit:
cvs rdiff -u -r1.134 -r1.135 src/sys/arch/mips/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/mips/include/cpu.h
diff -u src/sys/arch/mips/include/cpu.h:1.134 src/sys/arch/mips/include/cpu.h:1.135
--- src/sys/arch/mips/include/cpu.h:1.134 Tue Jan 31 21:11:24 2023
+++ src/sys/arch/mips/include/cpu.h Sun Jul 23 07:20:45 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.134 2023/01/31 21:11:24 andvar Exp $ */
+/* $NetBSD: cpu.h,v 1.135 2023/07/23 07:20:45 skrll Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -150,11 +150,11 @@ struct cpu_info {
struct evcnt ci_evcnt_synci_deferred_rqst;
struct evcnt ci_evcnt_synci_ipi_rqst;
-#define CPUF_PRIMARY 0x01 /* CPU is primary CPU */
-#define CPUF_PRESENT 0x02 /* CPU is present */
-#define CPUF_RUNNING 0x04 /* CPU is running */
-#define CPUF_PAUSED 0x08 /* CPU is paused */
-#define CPUF_USERPMAP 0x20 /* CPU has a user pmap activated */
+#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(5) /* CPU has a user pmap activated */
kcpuset_t *ci_shootdowncpus;
kcpuset_t *ci_multicastcpus;
kcpuset_t *ci_watchcpus;