summaryrefslogtreecommitdiff
path: root/kern/error.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2013-01-11 23:49:23 +0100
committerRichard Braun <rbraun@sceen.net>2013-01-11 23:49:23 +0100
commit644a177521a390133c98b9de83934a25e2be4f67 (patch)
tree186d4c4d5b23b4e0a94460ecb75e7a1f910a249f /kern/error.h
parentfb1b8cf4f196903f770ce9b0274423626c145517 (diff)
kern/thread: improve processor-local scheduling
This change introduces scheduling classes, including support for real-time and time-sharing threads. The real-time class matches the requirements of the POSIX SCHED_FIFO and SCHED_RR policies. The time-sharing class makes use of a scheduling algorithm based on group ratio round-robin (GR3) to provide proportional fairness.
Diffstat (limited to 'kern/error.h')
-rw-r--r--kern/error.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/kern/error.h b/kern/error.h
index bb1514a..93de842 100644
--- a/kern/error.h
+++ b/kern/error.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012 Richard Braun.
+ * Copyright (c) 2012, 2013 Richard Braun.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -19,5 +19,6 @@
#define _KERN_ERROR_H
#define ERROR_NOMEM 1
+#define ERROR_AGAIN 2
#endif /* _KERN_ERROR_H */