Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 May 2019 13:05:47 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r348163 - stable/12/sys/amd64/amd64
Message-ID:  <201905231305.x4ND5lqq094982@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Thu May 23 13:05:47 2019
New Revision: 348163
URL: https://svnweb.freebsd.org/changeset/base/348163

Log:
  MFC r347698:
  amd64 pmap: sysctl vm.pmap.pcid_save_cnt should be read-only.

Modified:
  stable/12/sys/amd64/amd64/pmap.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/amd64/amd64/pmap.c
==============================================================================
--- stable/12/sys/amd64/amd64/pmap.c	Thu May 23 13:03:10 2019	(r348162)
+++ stable/12/sys/amd64/amd64/pmap.c	Thu May 23 13:05:47 2019	(r348163)
@@ -466,7 +466,7 @@ pmap_pcid_save_cnt_proc(SYSCTL_HANDLER_ARGS)
 	}
 	return (sysctl_handle_64(oidp, &res, 0, req));
 }
-SYSCTL_PROC(_vm_pmap, OID_AUTO, pcid_save_cnt, CTLTYPE_U64 | CTLFLAG_RW |
+SYSCTL_PROC(_vm_pmap, OID_AUTO, pcid_save_cnt, CTLTYPE_U64 | CTLFLAG_RD |
     CTLFLAG_MPSAFE, NULL, 0, pmap_pcid_save_cnt_proc, "QU",
     "Count of saved TLB context on switch");
 



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