dedicated kthread interface and enablement of lrud auto-recycler
[lunaix-os.git] / lunaix-os / includes / lunaix / process.h
index 868a9fc290bc97a53ee3bac804b401cf87da54fd..d35c2340822805918165189b854d50a30319197d 100644 (file)
@@ -372,17 +372,6 @@ create_thread(struct proc_info* proc, bool with_ustack);
 void
 start_thread(struct thread* th, ptr_t entry);
 
-static inline void
-spawn_kthread(ptr_t entry) {
-    assert(kernel_process(__current));
-
-    struct thread* th = create_thread(__current, false);
-    
-    assert(th);
-    start_thread(th, entry);
-    detach_thread(th);
-}
-
 void 
 exit_thread(void* val);