Changeset View
Changeset View
Standalone View
Standalone View
sys/amd64/amd64/pmap.c
Show First 20 Lines • Show All 2,769 Lines • ▼ Show 20 Lines | _pmap_allocpte(pmap_t pmap, vm_pindex_t ptepindex, struct rwlock **lockp) | ||||
* Allocate a page table page. | * Allocate a page table page. | ||||
*/ | */ | ||||
if ((m = vm_page_alloc(NULL, ptepindex, VM_ALLOC_NOOBJ | | if ((m = vm_page_alloc(NULL, ptepindex, VM_ALLOC_NOOBJ | | ||||
VM_ALLOC_WIRED | VM_ALLOC_ZERO)) == NULL) { | VM_ALLOC_WIRED | VM_ALLOC_ZERO)) == NULL) { | ||||
if (lockp != NULL) { | if (lockp != NULL) { | ||||
RELEASE_PV_LIST_LOCK(lockp); | RELEASE_PV_LIST_LOCK(lockp); | ||||
PMAP_UNLOCK(pmap); | PMAP_UNLOCK(pmap); | ||||
PMAP_ASSERT_NOT_IN_DI(); | PMAP_ASSERT_NOT_IN_DI(); | ||||
vm_wait(NULL); | vm_wait(NULL, 0); | ||||
alc: I don't see any callers that actually use the timeout with vm_wait(). | |||||
PMAP_LOCK(pmap); | PMAP_LOCK(pmap); | ||||
} | } | ||||
/* | /* | ||||
* Indicate the need to retry. While waiting, the page table | * Indicate the need to retry. While waiting, the page table | ||||
* page may have been allocated. | * page may have been allocated. | ||||
*/ | */ | ||||
return (NULL); | return (NULL); | ||||
▲ Show 20 Lines • Show All 5,408 Lines • Show Last 20 Lines |
I don't see any callers that actually use the timeout with vm_wait().