summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2016-12-21 23:31:53 +0100
committerRichard Braun <rbraun@sceen.net>2016-12-21 23:33:28 +0100
commit11453089a1402932269b36f0b9f5831bcf888045 (patch)
tree3c7d8a433f986c1c6f06f6e36f0711435d49228a
parentec8e51c735d3963c24ec8739de400f20597a37ca (diff)
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.
-rw-r--r--vm/vm_pageout.c2
1 files changed, 1 insertions, 1 deletions
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);