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)
This commit is contained in:
Olivier Certner 2024-01-18 11:22:28 +01:00
parent f8c7bbd1c9
commit 261f70ffc8
No known key found for this signature in database
GPG key ID: 8CA13040971E2627

View file

@ -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.