dedicated kthread interface and enablement of lrud auto-recycler
[lunaix-os.git] / lunaix-os / includes / lunaix / sched.h
index 4264307dfa9f20fc8e29e61d047ec4cccbab27c9..94afa72173cd800d035ff85a2e5cf615d8ad2121 100644 (file)
@@ -34,4 +34,11 @@ 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 */