diff options
author | Andreas Kling <kling@serenityos.org> | 2020-04-08 13:54:44 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-08 17:19:46 +0200 |
commit | a7bbfda034562b4da80c2561c5dbd4b8c591c838 (patch) | |
tree | 6750df43672ee21bdc818ae56a63185a24bc5d61 /Kernel/Time | |
parent | dc7340332d94a9e0716ebe7e7d3fcfd6fe4fca13 (diff) | |
download | serenity-a7bbfda034562b4da80c2561c5dbd4b8c591c838.zip |
Kernel: Rename KParams => Kernel::CommandLine
Let's make this read more like English.
Diffstat (limited to 'Kernel/Time')
-rw-r--r-- | Kernel/Time/TimeManagement.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Kernel/Time/TimeManagement.cpp b/Kernel/Time/TimeManagement.cpp index 389707653c..1a85078216 100644 --- a/Kernel/Time/TimeManagement.cpp +++ b/Kernel/Time/TimeManagement.cpp @@ -25,7 +25,7 @@ */ #include <Kernel/ACPI/ACPIParser.h> -#include <Kernel/KParams.h> +#include <Kernel/CommandLine.h> #include <Kernel/Scheduler.h> #include <Kernel/Time/HPET.h> #include <Kernel/Time/HPETComparator.h> @@ -148,10 +148,10 @@ Vector<size_t> TimeManagement::scan_for_non_periodic_timers() bool TimeManagement::is_hpet_periodic_mode_allowed() { - if (!KParams::the().has("hpet")) { + if (!kernel_command_line().contains("hpet")) return true; - } - auto hpet_mode = KParams::the().get("hpet"); + + auto hpet_mode = kernel_command_line().get("hpet"); if (hpet_mode == "periodic") return true; if (hpet_mode == "nonperiodic") |