summaryrefslogtreecommitdiffstats
path: root/sys/sys/rman.h
diff options
context:
space:
mode:
authortruckman <truckman@FreeBSD.org>2014-07-16 22:18:19 +0000
committertruckman <truckman@FreeBSD.org>2014-07-16 22:18:19 +0000
commit0276dc4906a4ae8cdb098ec548026503fab67435 (patch)
tree1549d9145b58ef17ebbe74066aaa8bfc6ab4c527 /sys/sys/rman.h
parentb0c6d85262d72a744e80a5f1c4621cbaf89f1649 (diff)
downloadFreeBSD-src-0276dc4906a4ae8cdb098ec548026503fab67435.zip
FreeBSD-src-0276dc4906a4ae8cdb098ec548026503fab67435.tar.gz
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. MFC after: 2 weeks
Diffstat (limited to 'sys/sys/rman.h')
-rw-r--r--sys/sys/rman.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/rman.h b/sys/sys/rman.h
index 1914a72..d98dac7 100644
--- a/sys/sys/rman.h
+++ b/sys/sys/rman.h
@@ -42,8 +42,8 @@
#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_SPARE1 0x0008
+#define RF_SPARE2 0x0010
#define RF_FIRSTSHARE 0x0020 /* first in sharing list */
#define RF_PREFETCHABLE 0x0040 /* resource is prefetchable */
#define RF_OPTIONAL 0x0080 /* for bus_alloc_resources() */
OpenPOWER on IntegriCloud