Re: [PATCH 0/2] x86/fred: enable FRED by default
From: Xin Li
Date: Mon Mar 23 2026 - 23:10:16 EST
> On Mar 23, 2026, at 6:01 PM, Sohil Mehta <sohil.mehta@xxxxxxxxx> wrote:
>
>> @@ -1746,7 +1746,7 @@ static void __init cpu_parse_early_param(void)
>>
>> /* Minimize the gap between FRED is available and available but disabled. */
>> arglen = cmdline_find_option(boot_command_line, "fred", arg, sizeof(arg));
>> - if (arglen != 2 || strncmp(arg, "on", 2))
>> + if (arglen > 0 && (arglen != 2 || strncmp(arg, "on", 2)))
>> setup_clear_cpu_cap(X86_FEATURE_FRED);
>
> Nit: Would it be better to compare with "off" rather than not on?
+1 :)