Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Oct 2019 21:46:11 +0000 (UTC)
From:      Eric van Gyzen <vangyzen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r353114 - head/sys/x86/x86
Message-ID:  <201910042146.x94LkBWK063384@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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");
 
 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910042146.x94LkBWK063384>