summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/grantpt.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2008-01-14 21:25:06 +0000
committeralc <alc@FreeBSD.org>2008-01-14 21:25:06 +0000
commit021a700f2af95edd7062ab6729ce73450c36bd67 (patch)
tree6b758d9606e30bdf552bfc7f20d147f2ac415046 /lib/libc/stdlib/grantpt.c
parent00c36da743aaefbec9722e876ba63eed19fac1c8 (diff)
downloadFreeBSD-src-021a700f2af95edd7062ab6729ce73450c36bd67.zip
FreeBSD-src-021a700f2af95edd7062ab6729ce73450c36bd67.tar.gz
Make pmap_is_prefaultable() more TLB friendly. Specifically, make it use
the kernel's direct map instead of the pmap's recursive mapping to access the lowest level in the page table. The direct map is preferable for two reasons: (1) The TLB is more likely to hold the required direct mapping because pmap_enter() has already used the direct map to access a nearby PTE and (2) loading a direct mapping into the TLB involves walking only 2 or 3 levels of the page table instead of 4.
Diffstat (limited to 'lib/libc/stdlib/grantpt.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud