x86: NOMWAIT HLT C1 as the default idle state at hygon platform.

For performance considerations, the hygon platform defaults to using HLT as the C1 state.

Signed-off-by: yuehognwu yuehongwu@tencent.com
Reviewed-by: caelli caelli@tencent.com
Signed-off-by: Jianping Liu <frankjpliu@tencent.com>
This commit is contained in:
yuehongwu 2024-10-14 19:57:31 +08:00 committed by Jianping Liu
parent 9d1d946a72
commit 949978bef2
1 changed files with 3 additions and 0 deletions

View File

@ -822,6 +822,9 @@ void __init setup_arch(char **cmdline_p)
*/
x86_configure_nx();
if (boot_cpu_data.x86_vendor == X86_VENDOR_HYGON)
boot_option_idle_override = IDLE_NOMWAIT;
parse_early_param();
if (efi_enabled(EFI_BOOT))