static void cmm_timer_fn(unsigned long ignored) { long nr; nr = cmm_timed_pages_target - cmm_timeout_pages; if (nr < 0) cmm_timed_pages_target = 0; else cmm_timed_pages_target = nr; cmm_kick_thread(); cmm_set_timer(); }
static void cmm_timer_fn(unsigned long ignored) { long pages; pages = cmm_timed_pages_target - cmm_timeout_pages; if (pages < 0) cmm_timed_pages_target = 0; else cmm_timed_pages_target = pages; cmm_kick_thread(); cmm_set_timer(); }
void cmm_add_timed_pages(long pages) { cmm_timed_pages_target += pages; cmm_kick_thread(); }
void cmm_set_pages(long pages) { cmm_pages_target = pages; cmm_kick_thread(); }
void cmm_add_timed_pages(long nr) { cmm_timed_pages_target += nr; cmm_kick_thread(); }
void cmm_set_pages(long nr) { cmm_pages_target = nr; cmm_kick_thread(); }
static int cmm_resume(void) { cmm_suspended = 0; cmm_kick_thread(); return 0; }