Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Jan 2015 02:33:13 +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-10@freebsd.org
Subject:   svn commit: r276870 - stable/10/sys/amd64/amd64
Message-ID:  <201501090233.t092XDU6058308@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Fri Jan  9 02:33:12 2015
New Revision: 276870
URL: https://svnweb.freebsd.org/changeset/base/276870

Log:
  MFC r276522:
  Actually remove GIANT_REQUIRED, declared but not done in r263475.
  Style.

Modified:
  stable/10/sys/amd64/amd64/mem.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/amd64/amd64/mem.c
==============================================================================
--- stable/10/sys/amd64/amd64/mem.c	Fri Jan  9 02:30:30 2015	(r276869)
+++ stable/10/sys/amd64/amd64/mem.c	Fri Jan  9 02:33:12 2015	(r276870)
@@ -81,8 +81,6 @@ memrw(struct cdev *dev, struct uio *uio,
 	int error, o, sflags;
 	vm_offset_t addr, eaddr;
 
-	GIANT_REQUIRED;
-
 	error = 0;
 	c = 0;
 	sflags = curthread_pflags_set(TDP_DEVMEMIO);
@@ -110,8 +108,7 @@ kmemphys:
 			}
 			error = uiomove((void *)v, (int)c, uio);
 			continue;
-		}
-		else if (dev2unit(dev) == CDEV_MINOR_KMEM) {
+		} else if (dev2unit(dev) == CDEV_MINOR_KMEM) {
 			v = uio->uio_offset;
 
 			if (v >= DMAP_MIN_ADDRESS && v < DMAP_MAX_ADDRESS) {



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