summaryrefslogtreecommitdiff
path: root/Kernel/Thread.h
diff options
context:
space:
mode:
authorkleines Filmröllchen <filmroellchen@serenityos.org>2022-07-24 16:38:41 +0200
committerLinus Groh <mail@linusgroh.de>2022-10-27 11:30:19 +0100
commit6dded99777419746f2dc8ccbc899a1527c121cb8 (patch)
tree400d91d735b6ca09ae943a37fe1e311f07083265 /Kernel/Thread.h
parentce25bd858416fe088466ac451bacad46ced9ff31 (diff)
downloadserenity-6dded99777419746f2dc8ccbc899a1527c121cb8.zip
Kernel+LibC: Report correct scheduling priority limits
The priority range was changed several years ago, but the userland-reported limits were just forgotten :skeleyak:. Move the thread priority constants into an API header so that userland can use it properly.
Diffstat (limited to 'Kernel/Thread.h')
-rw-r--r--Kernel/Thread.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/Kernel/Thread.h b/Kernel/Thread.h
index a6e22826f5..cbb9e9bdd7 100644
--- a/Kernel/Thread.h
+++ b/Kernel/Thread.h
@@ -15,6 +15,7 @@
#include <AK/Time.h>
#include <AK/Variant.h>
#include <AK/Vector.h>
+#include <Kernel/API/POSIX/sched.h>
#include <Kernel/Arch/RegisterState.h>
#include <Kernel/Debug.h>
#include <Kernel/Forward.h>
@@ -46,12 +47,6 @@ struct ThreadSpecificData {
ThreadSpecificData* self;
};
-#define THREAD_PRIORITY_MIN 1
-#define THREAD_PRIORITY_LOW 10
-#define THREAD_PRIORITY_NORMAL 30
-#define THREAD_PRIORITY_HIGH 50
-#define THREAD_PRIORITY_MAX 99
-
#define THREAD_AFFINITY_DEFAULT 0xffffffff
struct ThreadRegisters {