mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +00:00
Kernel: Merge PowerStateSwitchTask reboot and shutdown procedures
The reboot procedure should prepare to "shutdown" the system cleanly and therefore has to be merged with how shutdown is handled.
This commit is contained in:
parent
b81b2c3fe7
commit
ef6133337e
2 changed files with 23 additions and 25 deletions
|
@ -29,10 +29,13 @@ private:
|
|||
static void spawn(PowerStateCommand);
|
||||
|
||||
static void power_state_switch_task(void* raw_entry_data);
|
||||
static ErrorOr<void> perform_reboot();
|
||||
static ErrorOr<void> perform_shutdown();
|
||||
|
||||
static ErrorOr<void> kill_all_user_processes();
|
||||
enum class DoReboot {
|
||||
No,
|
||||
Yes,
|
||||
};
|
||||
static ErrorOr<void> perform_shutdown(DoReboot);
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue