diff options
author | rwatson <rwatson@FreeBSD.org> | 2002-11-08 19:00:17 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2002-11-08 19:00:17 +0000 |
commit | 551263d9d4002f712d593776676a9ea50a04cf2d (patch) | |
tree | bb1b1d9947625f618e2a321ff0eb85de1e4b9c53 /lib | |
parent | 9f2614d473d60813762faa3db456be08015cd4b8 (diff) | |
download | FreeBSD-src-551263d9d4002f712d593776676a9ea50a04cf2d.zip FreeBSD-src-551263d9d4002f712d593776676a9ea50a04cf2d.tar.gz |
To reduce per-return overhead of userret(), call into
mac_thread_userret() only if PS_MACPEND is set in the process AST mask.
This avoids the cost of the entry point in the common case, but
requires policies interested in the userret event to set the flag
(protected by the scheduler lock) if they do want the event. Since
all the policies that we're working with which use mac_thread_userret()
use the entry point only selectively to perform operations deferred
for locking reasons, this maintains the desired semantics.
Approved by: re
Requested by: bde
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions