mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
check cmdline string to determine the frequency
This commit is contained in:
parent
78922085ac
commit
1e3a73ea44
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue