git: 261f70ffc8a8 - stable/14 - Annotate 'rebooting' with __read_mostly
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 20 Feb 2024 08:27:57 UTC
The branch stable/14 has been updated by olce:
URL: https://cgit.FreeBSD.org/src/commit/?id=261f70ffc8a85085c4bc3632818f77e60d4d076e
commit 261f70ffc8a85085c4bc3632818f77e60d4d076e
Author: Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2024-01-18 10:22:28 +0000
Commit: Olivier Certner <olce@FreeBSD.org>
CommitDate: 2024-02-20 08:27:03 +0000
Annotate 'rebooting' with __read_mostly
While here, put such annotation after the variable for 'dumping', since
it concerns the variable and not the type.
Reviewed by: markj
Approved by: markj (mentor)
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D43570
(cherry picked from commit 12d6a032dff10fad72f7d3f1bb5cb4c53b9c4284)
Approved by: markj (mentor)
---
sys/kern/kern_shutdown.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c
index 149a9456173f..d1fe560c5c9b 100644
--- a/sys/kern/kern_shutdown.c
+++ b/sys/kern/kern_shutdown.c
@@ -229,8 +229,8 @@ SYSCTL_INT(_kern, OID_AUTO, kerneldump_gzlevel, CTLFLAG_RWTUN,
const char *panicstr;
bool __read_frequently panicked;
-int __read_mostly dumping; /* system is dumping */
-int rebooting; /* system is rebooting */
+int dumping __read_mostly; /* system is dumping */
+int rebooting __read_mostly; /* system is rebooting */
/*
* Used to serialize between sysctl kern.shutdown.dumpdevname and list
* modifications via ioctl.