diff options
author | truckman <truckman@FreeBSD.org> | 2014-08-01 15:04:46 +0000 |
---|---|---|
committer | truckman <truckman@FreeBSD.org> | 2014-08-01 15:04:46 +0000 |
commit | d1eb948ff0789050fdf8311fc204b8f39fcaf5e2 (patch) | |
tree | 687d0a3e70bb1a09bf848247347b823622d11840 /share | |
parent | 270336f678cafc06841af74b55a8f3b4939ddcdd (diff) | |
download | FreeBSD-src-d1eb948ff0789050fdf8311fc204b8f39fcaf5e2.zip FreeBSD-src-d1eb948ff0789050fdf8311fc204b8f39fcaf5e2.tar.gz |
MFC r268780
Nuke the never-used RF_TIMESHARE feature, reducing the complexity of the
code. The consensus on arch@ is that this feature might have been useful
in the distant past, but is now just unnecessary bloat.
The int_rman_activate_resource() and int_rman_deactivate_resource()
functions become trivial, so manually inline them.
The special deferred handling of RF_ACTIVE is no longer needed in
reserve_resource_bound(), so eliminate the associated code at the
end of the function.
These changes reduce the object file size by more than 500 bytes on i386.
Update the rman.9 man page to reflect the removal of the RF_TIMESHARE
feature.
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man9/rman.9 | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/share/man/man9/rman.9 b/share/man/man9/rman.9 index d9a2092..4c8ef29 100644 --- a/share/man/man9/rman.9 +++ b/share/man/man9/rman.9 @@ -25,7 +25,7 @@ .\" .\" $FreeBSD$ .\" -.Dd April 29, 2011 +.Dd July 15, 2014 .Dt RMAN 9 .Os .Sh NAME @@ -141,13 +141,11 @@ represented by a 16-bit flag register, as follows. #define RF_ALLOCATED 0x0001 /* resource has been reserved */ #define RF_ACTIVE 0x0002 /* resource allocation has been activated */ #define RF_SHAREABLE 0x0004 /* resource permits contemporaneous sharing */ -#define RF_TIMESHARE 0x0008 /* resource permits time-division sharing */ -#define RF_WANTED 0x0010 /* somebody is waiting for this resource */ #define RF_FIRSTSHARE 0x0020 /* first in sharing list */ #define RF_PREFETCHABLE 0x0040 /* resource is prefetchable */ .Ed .Pp -The remainder of the flag bits are used to represent the desired alignment +Bits 15:10 of the flag register are used to represent the desired alignment of the resource within the region. .Pp The @@ -299,12 +297,9 @@ The .Fa bound argument must be a power of two. It may be set to zero to specify no boundary restriction. -The default behavior is to allocate an exclusive segment, unless the +A shared segment will be allocated if the .Dv RF_SHAREABLE -or -.Dv RF_TIMESHARE -flags are set, in which case a shared -segment will be allocated. +flag is set, otherwise an exclusive segment will be allocated. If this shared segment already exists, the caller has its device added to the list of consumers. .Pp |