diff options
author | Richard Braun <rbraun@sceen.net> | 2012-07-08 00:31:53 +0000 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2012-07-08 00:31:53 +0000 |
commit | 8d219eab0dcfbdcf464340630d568c4e16d7acbd (patch) | |
tree | affcb7ed98bf127697f53393e9437bd10ff957a5 /kern/ipc_kobject.h | |
parent | 27150b21c3366d6b474fe3e69140ecac65ab7ed2 (diff) |
Fix slab collection timing
The slab garbage collector uses sched_tick as its time reference, which
is increased every seconds, while the interval is expressed in clock
ticks. Use the proper time reference instead.
* kern/slab.c (kmem_gc_last_tick): Declare as unsigned long.
(slab_collect): Use elapsed_ticks instead of sched_tick.
Diffstat (limited to 'kern/ipc_kobject.h')
0 files changed, 0 insertions, 0 deletions