Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2974291imm; Sun, 19 Aug 2018 09:13:39 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzHBeXv6k0cJX8TMKGL+njqceNkk631xy31tYhysG5awQq9HDAvTwSeF2SIGZ7k25KUFgFK X-Received: by 2002:a65:50cc:: with SMTP id s12-v6mr39433388pgp.375.1534695219487; Sun, 19 Aug 2018 09:13:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534695219; cv=none; d=google.com; s=arc-20160816; b=fGWsUIejMDHp/pXGzpsEsPVxumDIfsJtbxBayLgKNww45ohzPOXZMh3GdPGbVZTmYP VGubpK7Wbd/qiVZYJIZvZpjAoJOtvoRj1HUX3ZRddnByJ2jb7TA7+p0PsEbVrnd0V7l9 p9j7OeBO0yMeuHf0GYSb9GC31wj2d1zpQobECUrK9ZXtinZo7ZS4Pk3DOM116WBZwPYJ cPr8E4KwfVNYyNShG7zPu76+Sd9EwAOqlUF26muzAnqhHXSwvnqZ3p/GpaD7nkArOJd4 Koy9hB27bxWM1tSO2ir3vkwfZ87ZhsPRZ/OZI/9VJ4os6oOEbr2WUY7QlxXfvVAcNqdy vxVw== 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:arc-authentication-results; bh=oQMsPUO47XeZ6TgwjAtxQO2CsoFeR+YdBPwSXLcmRfY=; b=FxQ/QQjLoUBLFmZ4r7D9jW62vvy+YwUcD7y8ZkD6V6ObeVqasaRBcyGM38dOYJR+OF oxoKkI8/lonn+/+i754KzrSISfHVMEtIZefLYsjTf7ohX0EdwKuiIszUonLlT6MwvSjA 5vWNbka7Wfj4bi7+pk/oSt8QGEeNTcu5lqnKhWNi9vYo9YV0SdFZ3IAOkuYV6d1uxrIV SWHFzEzqobCCMSYpMmIqQYPb/xddRsv7Ln4/LgCgVFMxF3VkRFQUwHViXlIIuyivyIgo nSWECfByd4AHOiOAuShJ4IJterb1oP0mMWLCtmhEF4GcANLeqqJjnXx8v6wXwNUi8I9v C4Xg== 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 r17-v6si6085914pgo.606.2018.08.19.09.13.23; Sun, 19 Aug 2018 09:13:39 -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 S1726795AbeHSTWp (ORCPT + 99 others); Sun, 19 Aug 2018 15:22:45 -0400 Received: from smtp20.cstnet.cn ([159.226.251.20]:47787 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726561AbeHSTWp (ORCPT ); Sun, 19 Aug 2018 15:22:45 -0400 Received: from localhost.localdomain (unknown [110.184.154.248]) by APP-10 (Coremail) with SMTP id tACowAAHDWF5lnlb6pGwAg--.8S2; Mon, 20 Aug 2018 00:10:37 +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 v4 06/16] x86/nops: init ideal_nops for Hygon Date: Mon, 20 Aug 2018 00:10:23 +0800 Message-Id: <2cd2202f9ebb5c63048594555aac35c3e303a2f7.1534599097.git.puwen@hygon.cn> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: X-CM-TRANSID: tACowAAHDWF5lnlb6pGwAg--.8S2 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUY47AC8VAFwI0_Gr0_Xr1l1xkIjI8I6I8E 6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28Cjx kF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW5JVW7JwA2z4x0Y4vE2Ix0cI8I cVCY1x0267AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVAFwI0_Gr0_Cr1l84ACjcxK6I8E87 Iv6xkF7I0E14v26r4j6r4UJwAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAK zVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUtVWrXwAv7VC2z280aVAFwI0_Gr0_Cr1lOx 8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JM4x0x7Aq67IIx4CEVc8vx2IErcIF xwACI402YVCY1x02628vn2kIc2xKxwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbV WUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF 67kF1VAFwI0_Jw0_GFylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVW5JVW7JwCI42 IY6xIIjxv20xvEc7CjxVAFwI0_Gr1j6F4UJwCI42IY6xAIw20EY4v20xvaj40_Gr0_Zr1l IxAIcVC2z280aVAFwI0_Gr0_Cr1lIxAIcVC2z280aVCY1x0267AKxVW8JVW8JrUvcSsGvf C2KfnxnUUI43ZEXa7VUbjQ6JUUUUU== X-Originating-IP: [110.184.154.248] 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 Dhyana processors should be p6_nops. 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 a481763..8f4925b 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