summaryrefslogtreecommitdiff
path: root/Kernel/ACPI
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2020-04-09 20:48:57 +0300
committerAndreas Kling <kling@serenityos.org>2020-04-09 19:59:53 +0200
commitfec8763c210031f65005e1a2455fe707790ef26b (patch)
tree4ee598b1c377aac92b54cf93fae0c8b0f7e6de2c /Kernel/ACPI
parenta7c5a1fe69633ce5cb4f2bc76cf9ea2563f1a539 (diff)
downloadserenity-fec8763c210031f65005e1a2455fe707790ef26b.zip
Interrupts: Make the MultiProcessorParser functional again
Diffstat (limited to 'Kernel/ACPI')
-rw-r--r--Kernel/ACPI/MultiProcessorParser.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/ACPI/MultiProcessorParser.cpp b/Kernel/ACPI/MultiProcessorParser.cpp
index 05157a77df..7da9b65c33 100644
--- a/Kernel/ACPI/MultiProcessorParser.cpp
+++ b/Kernel/ACPI/MultiProcessorParser.cpp
@@ -40,8 +40,8 @@ bool MultiProcessorParser::is_initialized()
void MultiProcessorParser::initialize()
{
- if (!MultiProcessorParser::is_initialized())
- s_parser = new MultiProcessorParser;
+ ASSERT(!is_initialized());
+ s_parser = new MultiProcessorParser;
}
MultiProcessorParser::MultiProcessorParser()
@@ -181,7 +181,7 @@ Vector<unsigned> MultiProcessorParser::get_pci_bus_ids()
MultiProcessorParser& MultiProcessorParser::the()
{
- ASSERT(!MultiProcessorParser::is_initialized());
+ ASSERT(is_initialized());
return *s_parser;
}