mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:18:11 +00:00
Kernel+Userland: Move /sys/firmware/power_state to /sys/kernel directory
Let's put the power_state global node into the /sys/kernel directory, because that directory represents all global nodes and variables being related to the Kernel. It's also a mutable node, that is more acceptable being in the mentioned directory due to the fact that all other files in the /sys/firmware directory are just firmware blobs and are not mutable at all.
This commit is contained in:
parent
8c21d974b2
commit
75f01692b4
9 changed files with 21 additions and 21 deletions
|
@ -7,7 +7,6 @@
|
|||
#include <Kernel/FileSystem/SysFS/Registry.h>
|
||||
#include <Kernel/FileSystem/SysFS/Subsystems/Firmware/BIOS/Directory.h>
|
||||
#include <Kernel/FileSystem/SysFS/Subsystems/Firmware/Directory.h>
|
||||
#include <Kernel/FileSystem/SysFS/Subsystems/Firmware/PowerStateSwitch.h>
|
||||
#include <Kernel/Firmware/ACPI/Parser.h>
|
||||
#include <Kernel/Sections.h>
|
||||
|
||||
|
@ -26,7 +25,6 @@ void FirmwareSysFSDirectory::create_components()
|
|||
list.append(BIOSSysFSDirectory::must_create(*this));
|
||||
if (ACPI::is_enabled())
|
||||
list.append(ACPI::ACPISysFSDirectory::must_create(*this));
|
||||
list.append(PowerStateSwitchNode::must_create(*this));
|
||||
return {};
|
||||
}));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue