Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp514230imm; Wed, 29 Aug 2018 05:46:40 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZp7XnaL+y5vXFcKjlAj/Z2MxmjzTxLM/RDmYtMjYG9CFK3B9Ny1Ep9m2rnRyZiDG08uCoS X-Received: by 2002:a62:e412:: with SMTP id r18-v6mr5870065pfh.25.1535546800888; Wed, 29 Aug 2018 05:46:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535546800; cv=none; d=google.com; s=arc-20160816; b=ZPsF8KlH/zQ5+rmc2znnkbCn9cqe+9NyGu2qHVXnr+B8UCLvcM1wWQIn9VyjmKsVVN 9FIssrdb/TZi8cTtDrPQLV0ezxECmgTlu+KkSmeN2B4hEv9hDkn/gFXi9flnufUoVBu/ ST5+ov2dg0FRHDR68kpZ8ua+X4oQbfjvEDqwIJT2vNsIUzTwWTlDDg2upCcg94+y7Foi CpcT7tNSY5g1DVJ/3bDdNeWsNk6HXTmGwxFTBtZER1lGZGwlBvs5D4AiopNabJjeu3YS fV6/MvSI53qWr6EPJ6+38Sev2MIVbpSifCMvtxEdf9DOgiaX0TNA8TTjws9pjAlALBZE ATyw== 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=aEUYGop+7vHPFogzNkcVZ9UXyeSFTPhprQvGXqt0Hps=; b=uRHOT85G3RgRGVX0/LZrV+Z45+vJaya2UMAd4S5f2uvHIRJSn1kC+MOlzHm4qcqGjJ QiWX9HQZLI1orALU6waC+atEEUiW0lfG0D+nwEpRkz3IyBXa4LSctrqDP1NFudI3eVus P7TOGzeeyNyhDeNtPrVS8noCHbQqNdb+d8FdB5GW8kSvQucASCdn4N+FHhLsylNrkyf8 pTrsYK5gNGGvSGBnguyVUihmbMLUUTRA+KX1WW4/QWhC0iNKWH8dMX3XuZWHSGliRZOb 81diVQle0Ni8aqchKe1VWRI4bYFmZszCxNrfeIDKIq061+abxKbCiKIPc6KRZ9rvmpE2 RHVw== 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 bd3-v6si3698984plb.253.2018.08.29.05.46.26; Wed, 29 Aug 2018 05:46:40 -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 S1728599AbeH2QlK (ORCPT + 99 others); Wed, 29 Aug 2018 12:41:10 -0400 Received: from smtp17.cstnet.cn ([159.226.251.17]:48368 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727590AbeH2QlK (ORCPT ); Wed, 29 Aug 2018 12:41:10 -0400 Received: from pw-vbox.higon.com (unknown [182.150.46.145]) by APP-09 (Coremail) with SMTP id swCowACnr5MYlYZbKo7_BA--.0S2; Wed, 29 Aug 2018 20:44:11 +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 v5 06/16] x86/nops: init ideal_nops for Hygon Date: Wed, 29 Aug 2018 20:44:07 +0800 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: X-CM-TRANSID: swCowACnr5MYlYZbKo7_BA--.0S2 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUY47AC8VAFwI0_Gr0_Xr1l1xkIjI8I6I8E 6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28Cjx kF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVWUCVW8JwA2z4x0Y4vE2Ix0cI8I cVCY1x0267AKxVWxJVW8Jr1l84ACjcxK6I8E87Iv67AKxVWUJVW8JwA2z4x0Y4vEx4A2js IEc7CjxVAFwI0_Gr0_Gr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE 6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1q6rW5McIj6I8E87Iv67AKxVW8Jr0_Cr1UMc vjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwACjI8F5VA0II8E6IAqYI8I648v 4I1lFIxGxcIEc7CjxVA2Y2ka0xkIwI1l42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7 v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF 1VAY17CE14v26r1q6r43MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_JFI_Gr1lIx AIcVC0I7IYx2IY6xkF7I0E14v26F4j6r4UJwCI42IY6xAIw20EY4v20xvaj40_Gr0_Zr1l IxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxVW8JVW8JrUvcSsGvf C2KfnxnUUI43ZEXa7VUbKLvtUUUUU== X-Originating-IP: [182.150.46.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 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 014f214..3f51d1c 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