summaryrefslogtreecommitdiff
path: root/Kernel/Scheduler.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-02-12 12:11:22 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-02-12 12:11:22 +0100
commit7ce15f1c54cd56c4303e6fcd613043df1758343d (patch)
treece7e139ba2845525160ecb8336e7943d002be231 /Kernel/Scheduler.cpp
parentf3c8821b0fad6c8bac9607859866aec896801bd7 (diff)
downloadserenity-7ce15f1c54cd56c4303e6fcd613043df1758343d.zip
Fix some compilation warnings.
Diffstat (limited to 'Kernel/Scheduler.cpp')
-rw-r--r--Kernel/Scheduler.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/Kernel/Scheduler.cpp b/Kernel/Scheduler.cpp
index 827368586a..22b6deddd5 100644
--- a/Kernel/Scheduler.cpp
+++ b/Kernel/Scheduler.cpp
@@ -12,13 +12,14 @@ static dword time_slice_for(Process::Priority priority)
{
// One time slice unit == 1ms
switch (priority) {
- case Process::LowPriority:
- return 5;
- case Process::NormalPriority:
- return 15;
case Process::HighPriority:
return 50;
+ case Process::NormalPriority:
+ return 15;
+ case Process::LowPriority:
+ return 5;
}
+ ASSERT_NOT_REACHED();
}
Process* current;