Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Feb 2020 10:41:22 +0000 (UTC)
From:      Pawel Biernacki <kaktus@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r358280 - head/sys/dev/ofw
Message-ID:  <202002241041.01OAfMDN013594@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kaktus
Date: Mon Feb 24 10:41:22 2020
New Revision: 358280
URL: https://svnweb.freebsd.org/changeset/base/358280

Log:
  Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (11 of many)
  
  r357614 added CTLFLAG_NEEDGIANT to make it easier to find nodes that are
  still not MPSAFE (or already are but aren’t properly marked).
  Use it in preparation for a general review of all nodes.
  
  This is non-functional change that adds annotations to SYSCTL_NODE and
  SYSCTL_PROC nodes using one of the soon-to-be-required flags.
  
  Approved by:	kib (mentor, blanket)
  Differential Revision:	https://reviews.freebsd.org/D23636

Modified:
  head/sys/dev/ofw/ofw_fdt.c

Modified: head/sys/dev/ofw/ofw_fdt.c
==============================================================================
--- head/sys/dev/ofw/ofw_fdt.c	Mon Feb 24 10:40:35 2020	(r358279)
+++ head/sys/dev/ofw/ofw_fdt.c	Mon Feb 24 10:41:22 2020	(r358280)
@@ -123,8 +123,8 @@ sysctl_register_fdt_oid(void *arg)
 		return;
 
 	SYSCTL_ADD_PROC(NULL, SYSCTL_STATIC_CHILDREN(_hw_fdt), OID_AUTO, "dtb",
-	    CTLTYPE_OPAQUE | CTLFLAG_RD, NULL, 0, sysctl_handle_dtb, "",
-	    "Device Tree Blob");
+	    CTLTYPE_OPAQUE | CTLFLAG_RD | CTLFLAG_MPSAFE, NULL, 0,
+	    sysctl_handle_dtb, "", "Device Tree Blob");
 }
 SYSINIT(dtb_oid, SI_SUB_KMEM, SI_ORDER_ANY, sysctl_register_fdt_oid, NULL);
 



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