timekeeper sources: add an option to disable each one of them

This commit is contained in:
Matheus
2024-10-02 19:50:05 -03:00
parent a2f133b346
commit a64b32e1aa
3 changed files with 13 additions and 0 deletions
+5
View File
@@ -3,8 +3,13 @@
#include <arch/cpuid.h>
#include <logging.h>
#include <kernel/alloc.h>
#include <arch/hpet.h>
#include <kernel/cmdline.h>
static bool tsc_probe(void) {
if (cmdline_get("notsc"))
return false;
cpuid_results_t cpuid_results;
uint32_t max_extended_leaf = cpuid_extended_max_leaf();