Make the hw.intrs sysctl OID read-only

The handler ignores the new value, so make the OID read-only.

I found this while working on r353111.

MFC after:	2 weeks
Sponsored by:	Dell EMC Isilon
This commit is contained in:
Eric van Gyzen 2019-10-04 21:46:11 +00:00
parent fdd888dee3
commit a912616493
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=353114

View File

@ -750,7 +750,7 @@ sysctl_hw_intrs(SYSCTL_HANDLER_ARGS)
sbuf_delete(&sbuf);
return (error);
}
SYSCTL_PROC(_hw, OID_AUTO, intrs, CTLTYPE_STRING | CTLFLAG_RW,
SYSCTL_PROC(_hw, OID_AUTO, intrs, CTLTYPE_STRING | CTLFLAG_RD,
0, 0, sysctl_hw_intrs, "A", "interrupt:number @cpu: count");
/*