kernel: mmu: rename z_eviction* to k_mem_paging_eviction*

These functions and data structures are those that need
to be implemented by eviction algorithm and application
outside kernel. Promote them from z_* so these can be
included in documentation.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2021-05-13 11:02:56 -07:00 committed by Anas Nashif
commit 31c362d966
7 changed files with 48 additions and 39 deletions

View file

@ -40,7 +40,7 @@ static void nru_periodic_update(struct k_timer *timer)
irq_unlock(key);
}
struct z_page_frame *z_eviction_select(bool *dirty_ptr)
struct z_page_frame *k_mem_paging_eviction_select(bool *dirty_ptr)
{
unsigned int last_prec = 4U;
struct z_page_frame *last_pf = NULL, *pf;
@ -89,7 +89,7 @@ struct z_page_frame *z_eviction_select(bool *dirty_ptr)
static K_TIMER_DEFINE(nru_timer, nru_periodic_update, NULL);
void z_eviction_init(void)
void k_mem_paging_eviction_init(void)
{
k_timer_start(&nru_timer, K_NO_WAIT,
K_MSEC(CONFIG_EVICTION_NRU_PERIOD));