git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into prog-loader
[lunaix-os.git]
/
lunaix-os
/
includes
/
lunaix
/
sched.h
diff --git
a/lunaix-os/includes/lunaix/sched.h
b/lunaix-os/includes/lunaix/sched.h
index a0778a39faf7d53f848ff05eb8caf61b21bd23f5..f31eab52daa9ce7ddc34b2d220812b64c9a27985 100644
(file)
--- a/
lunaix-os/includes/lunaix/sched.h
+++ b/
lunaix-os/includes/lunaix/sched.h
@@
-1,15
+1,25
@@
#ifndef __LUNAIX_SCHEDULER_H
#define __LUNAIX_SCHEDULER_H
#ifndef __LUNAIX_SCHEDULER_H
#define __LUNAIX_SCHEDULER_H
-#define SCHED_TIME_SLICE
10
00
+#define SCHED_TIME_SLICE
3
00
-struct scheduler {
- struct proc_info* _procs;
+#define PROC_TABLE_SIZE 8192
+#define MAX_PROCESS (PROC_TABLE_SIZE / sizeof(uintptr_t))
+
+struct scheduler
+{
+ struct proc_info** _procs;
int procs_index;
unsigned int ptable_len;
};
int procs_index;
unsigned int ptable_len;
};
-void sched_init();
-void schedule();
+void
+sched_init();
+
+void
+schedule();
+
+void
+sched_yieldk();
#endif /* __LUNAIX_SCHEDULER_H */
#endif /* __LUNAIX_SCHEDULER_H */