From 11453089a1402932269b36f0b9f5831bcf888045 Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Wed, 21 Dec 2016 23:31:53 +0100 Subject: VM: fix pageout timeout The interval parameter to the thread_set_timeout function is actually in ticks. * vm/vm_pageout.c (vm_pageout): Fix call to thread_set_timeout. --- vm/vm_pageout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/vm_pageout.c b/vm/vm_pageout.c index 7dc9c12f..da0f8077 100644 --- a/vm/vm_pageout.c +++ b/vm/vm_pageout.c @@ -470,7 +470,7 @@ void vm_pageout(void) FALSE); } else if (should_wait) { assert_wait(&vm_pageout_continue, FALSE); - thread_set_timeout(VM_PAGEOUT_TIMEOUT); + thread_set_timeout(VM_PAGEOUT_TIMEOUT * hz / 1000); simple_unlock(&vm_page_queue_free_lock); thread_block(NULL); -- cgit v1.2.3