From 1e3a73ea4407cf475e8627da4f5dc17a3b4ce4b3 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Mon, 3 Apr 2017 09:16:12 +0200 Subject: [PATCH] check cmdline string to determine the frequency --- arch/x86/kernel/processor.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/x86/kernel/processor.c b/arch/x86/kernel/processor.c index 1c3eeafe2..7b1cf0073 100644 --- a/arch/x86/kernel/processor.c +++ b/arch/x86/kernel/processor.c @@ -172,7 +172,6 @@ static void fpu_init_xsave(union fpu_state* fpu) static uint32_t get_frequency_from_mbinfo(void) { -#if 0 if (mb_info && (mb_info->flags & MULTIBOOT_INFO_CMDLINE)) { // search in the command line for cpu frequency @@ -182,7 +181,7 @@ static uint32_t get_frequency_from_mbinfo(void) return atoi(found+strlen("-freq")); } -#endif + return 0; }