Kernel: Pressing F1 now toggles rendering of CPU loads to the terminal

This can be nice for seeing the performance and problems on the load
balancing algorithm.
This commit is contained in:
2024-07-22 00:43:13 +03:00
parent f8261c60c0
commit 3e0150f847
3 changed files with 46 additions and 0 deletions

View File

@@ -114,6 +114,9 @@ namespace Kernel
{
switch (key_event.keycode)
{
case LibInput::keycode_function(1):
Processor::toggle_should_print_cpu_load();
break;
case LibInput::keycode_function(12):
Kernel::panic("Keyboard kernel panic :)");
break;