dedicated kthread interface and enablement of lrud auto-recycler
[lunaix-os.git] / lunaix-os / includes / lunaix / sched.h
index c011adbb2d846058b82915b36657f890450e800e..94afa72173cd800d035ff85a2e5cf615d8ad2121 100644 (file)
@@ -28,13 +28,17 @@ sched_init();
 void noret
 schedule();
 
-void
-sched_pass();
-
 void noret
 run(struct thread* thread);
 
 void
 cleanup_detached_threads();
 
+static inline struct scheduler*
+scheduler()
+{
+    extern struct scheduler sched_ctx;
+    return &sched_ctx;
+}
+
 #endif /* __LUNAIX_SCHEDULER_H */