Changeset View
Changeset View
Standalone View
Standalone View
sys/riscv/riscv/pmap.c
Show First 20 Lines • Show All 1,064 Lines • ▼ Show 20 Lines | pmap_qremove(vm_offset_t sva, int count) | ||||
} | } | ||||
pmap_invalidate_range(kernel_pmap, sva, va); | pmap_invalidate_range(kernel_pmap, sva, va); | ||||
} | } | ||||
/*************************************************** | /*************************************************** | ||||
* Page table page management routines..... | * Page table page management routines..... | ||||
***************************************************/ | ***************************************************/ | ||||
static __inline void | static __inline void | ||||
pmap_free_zero_pages(struct spglist *free) | pmap_free_zero_pages(struct spglist *free) | ||||
kib: There is no much point in keeping using the pmap_free_zero_pages() when the function does not… | |||||
ota_j.email.ne.jpAuthorUnsubmitted Not Done Inline ActionsGiven we are to remove this function, will vm_page_free_zero_pages() be a better name than vm_page_free_spglist()? ota_j.email.ne.jp: Given we are to remove this function, will vm_page_free_zero_pages() be a better name than… | |||||
{ | { | ||||
vm_page_t m; | vm_page_free_spglist(free); | ||||
while ((m = SLIST_FIRST(free)) != NULL) { | |||||
SLIST_REMOVE_HEAD(free, plinks.s.ss); | |||||
/* Preserve the page's PG_ZERO setting. */ | |||||
vm_page_free_toq(m); | |||||
} | |||||
} | } | ||||
/* | /* | ||||
* Schedule the specified unused page table page to be freed. Specifically, | * Schedule the specified unused page table page to be freed. Specifically, | ||||
* add the page to the specified list of pages that will be released to the | * add the page to the specified list of pages that will be released to the | ||||
* physical memory manager after the TLB has been updated. | * physical memory manager after the TLB has been updated. | ||||
*/ | */ | ||||
static __inline void | static __inline void | ||||
▲ Show 20 Lines • Show All 2,195 Lines • Show Last 20 Lines |
There is no much point in keeping using the pmap_free_zero_pages() when the function does not add any new functionality.