svn commit: r353114 - head/sys/x86/x86
Eric van Gyzen
vangyzen at FreeBSD.org
Fri Oct 4 21:46:12 UTC 2019
Author: vangyzen
Date: Fri Oct 4 21:46:11 2019
New Revision: 353114
URL: https://svnweb.freebsd.org/changeset/base/353114
Log:
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
Modified:
head/sys/x86/x86/intr_machdep.c
Modified: head/sys/x86/x86/intr_machdep.c
==============================================================================
--- head/sys/x86/x86/intr_machdep.c Fri Oct 4 21:44:52 2019 (r353113)
+++ head/sys/x86/x86/intr_machdep.c Fri Oct 4 21:46:11 2019 (r353114)
@@ -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");
/*
More information about the svn-src-head
mailing list