Second Extended Filesystem (ext2) and other improvements (#33)
[lunaix-os.git] / lunaix-os / kernel / time / timer.c
index 407bd9a3051d66fc44bf6bb00dd08606dc4090b7..b9d98afc8b79d7cb912f3f7092020e1e21a6ed32 100644 (file)
@@ -16,7 +16,7 @@
 #include <lunaix/spike.h>
 #include <lunaix/syslog.h>
 #include <lunaix/timer.h>
-#include <lunaix/pcontext.h>
+#include <lunaix/hart_state.h>
 
 #include <hal/hwtimer.h>
 
@@ -123,6 +123,7 @@ timer_update()
 
     if (sched_ticks_counter >= sched_ticks) {
         sched_ticks_counter = 0;
+        thread_stats_update_entering(false);
         schedule();
     }
 }