summaryrefslogtreecommitdiffstats
path: root/sys/dev/microcode/udl/build.c
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2009-08-25 18:02:42 +0000
committermiod <miod@openbsd.org>2009-08-25 18:02:42 +0000
commit42804ed4b16a0bce7f1f53d82d36250d32017d67 (patch)
tree735a0d18b60e126c72b70dcbd8480b1f5389d244 /sys/dev/microcode/udl/build.c
parentThe BUCKETINDX() giant macro is used to compute the base 2 logarithm of its (diff)
downloadwireguard-openbsd-42804ed4b16a0bce7f1f53d82d36250d32017d67.tar.xz
wireguard-openbsd-42804ed4b16a0bce7f1f53d82d36250d32017d67.zip
If option DIAGNOSTIC, do not bother doing sanity checks, including an
uvm_map_checkprot() call, if the memory we're about to return has just been allocated with uvm_km_kmemalloc() instead of coming from the freelist. No functional change but a very small speedup when the freelist for the given bucket is empty.
Diffstat (limited to 'sys/dev/microcode/udl/build.c')
0 files changed, 0 insertions, 0 deletions