git: 12d6a032dff1 - main - Annotate 'rebooting' with __read_mostly
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 26 Jan 2024 21:11:28 UTC
The branch main has been updated by olce:
URL: https://cgit.FreeBSD.org/src/commit/?id=12d6a032dff10fad72f7d3f1bb5cb4c53b9c4284
commit 12d6a032dff10fad72f7d3f1bb5cb4c53b9c4284
Author: Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2024-01-18 10:22:28 +0000
Commit: Olivier Certner <olce@FreeBSD.org>
CommitDate: 2024-01-26 21:09:10 +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
---
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 d66c7ba0d344..17d40ff0429c 100644
--- a/sys/kern/kern_shutdown.c
+++ b/sys/kern/kern_shutdown.c
@@ -226,8 +226,8 @@ SYSCTL_INT(_kern, OID_AUTO, kerneldump_gzlevel, CTLFLAG_RWTUN,
*/
const char *panicstr __read_mostly;
-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.