Per overwhelming sentiment in the code review, use FEATURE instead.

Differential Revision: https://reviews.freebsd.org/D3488
MFC After: 2 days
This commit is contained in:
Warner Losh 2015-08-28 19:53:19 +00:00
parent fd449cdf1e
commit 3f27281613
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=287264

View File

@ -119,12 +119,8 @@ SYSCTL_INT(_debug, OID_AUTO, bootverbose, CTLFLAG_RW, &bootverbose, 0,
/* Want to avoid defining INVARIANTS if not already defined */
#ifdef INVARIANTS
static int invariants = 1;
#else
static int invariants = 0;
FEATURE(invariants, "Kernel compiled with INVARIANTS, may affect performance");
#endif
SYSCTL_INT(_debug, OID_AUTO, invariants, CTLFLAG_RD, &invariants, 0,
"Kernel compiled with invariants");
/*
* This ensures that there is at least one entry so that the sysinit_set