Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2774417imm; Mon, 10 Sep 2018 06:21:59 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbnkTauAc4SAo3rA6VMAbVFlpCBY2UE9dnC9Pxea00GGKJcbFv8Lke/6XcdzmTZ3o578GsB X-Received: by 2002:a63:e001:: with SMTP id e1-v6mr22966297pgh.380.1536585719187; Mon, 10 Sep 2018 06:21:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536585719; cv=none; d=google.com; s=arc-20160816; b=pTYP7ueD1p5LV6ConIUOcG5qUk2ctjwiOjDK5kNyzlMnWRf6L74qL95SdG/IIl+94x PSNGhawRhyAbesPTZmegsG78FjOsfiUw5n1QjF/gqdwJwEpKkL+9SaleZA94FhO7PriV JYjYBrlJPvHM9x1WmkQXqFo4Pbqz3Ix3SNBDxAR8r8GsLL8u4r7KrScFMutbYHLK6Wjh MX3DToN57wEpFBci9jZFCTAh5GThNCyx0oRNZB2FVxHpoOjv7LM28YIUtY9E3D4bY5Nx hh1ouJHABe+sV5yyt3EcYm9qG4Uavu5ahD7gZL6biNMV1VbDVKyAvZ7UWo9iLJ4NOCNA B8GA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=GVqlIWYzRRyYxNI6aQ0sFzdzb+RanBe3E2xLGRjIKGw=; b=p5yzGx/rQhPv1igIUYvXiwzuo/rc1Cu7NSG2ZLsz/20qyKw/PVcVTybdRvwTG859va QkDJi8ajt47fXIm2Z9XjUsyEyGqmy3GaJ0lFsnkUFEoF8HewVS8QXtSnLtJ4JX1LdMEX gS8JTV8eUjdVOUvG8PPTDZrJZ7UfUSMh2Av9W6CxIGuZ3wwcMaTy1mX05ewvp+YlsndM nhY3S3qu/TP7AJp/gFSZYEXEr4VZ+ksriesDbNDGD1Yx40Sfyqo9OeHXgozKNK6zVVm4 rc9MukVB0hkmUsj8qDdO2EBC8S0bK1bMKF/OWfGeqzTuNPuj5yb9msRsp67Tg7Pq217U cZ4A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y27-v6si17791811pgl.479.2018.09.10.06.21.13; Mon, 10 Sep 2018 06:21:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728757AbeIJSLT (ORCPT + 99 others); Mon, 10 Sep 2018 14:11:19 -0400 Received: from smtp20.cstnet.cn ([159.226.251.20]:51997 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728159AbeIJSLT (ORCPT ); Mon, 10 Sep 2018 14:11:19 -0400 Received: from pw-vbox.higon.com (unknown [182.150.46.145]) by APP-10 (Coremail) with SMTP id tACowAC3je_MbpZb1v+ZCQ--.1579S2; Mon, 10 Sep 2018 21:17:04 +0800 (CST) From: Pu Wen To: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, thomas.lendacky@amd.com, bp@alien8.de, pbonzini@redhat.com Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Pu Wen Subject: [PATCH v6 06/16] x86/alternative: Init ideal_nops for Hygon Dhyana Date: Mon, 10 Sep 2018 21:16:58 +0800 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: X-CM-TRANSID: tACowAC3je_MbpZb1v+ZCQ--.1579S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.145] X-CM-SenderInfo: psxzv046klw03qof0z/ Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The ideal_nops for Hygon Dhyana CPU should be p6_nops. Reviewed-by: Borislav Petkov Signed-off-by: Pu Wen --- arch/x86/kernel/alternative.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c index b9d5e7c..184e9a0 100644 --- a/arch/x86/kernel/alternative.c +++ b/arch/x86/kernel/alternative.c @@ -222,6 +222,10 @@ void __init arch_init_ideal_nops(void) } break; + case X86_VENDOR_HYGON: + ideal_nops = p6_nops; + return; + case X86_VENDOR_AMD: if (boot_cpu_data.x86 > 0xf) { ideal_nops = p6_nops; -- 2.7.4