Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1369380imm; Sun, 23 Sep 2018 02:35:52 -0700 (PDT) X-Google-Smtp-Source: ACcGV625cqvrhD2tynsib+CEUtHwYSI/jKdvr4Y/6aczc+bIkdG94ZC2L646O79gSiR9P1Z/3y9W X-Received: by 2002:a63:6343:: with SMTP id x64-v6mr5229035pgb.173.1537695352799; Sun, 23 Sep 2018 02:35:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537695352; cv=none; d=google.com; s=arc-20160816; b=kD80Z6haeY4j0mw7eiLzC6mFlkNqntbwI3QhVtEXky1D64lAS2y13Y+uVmz6cacow9 RRDcWecxpPw1T0KsUtpzOL/oUE17XHEgongGxfoTdjCKaY3B1kaJ/4mDXQjs+q+wKPcq rc0foTdc03cP4al/slqHlRnOESmt5sWrtgebaC00RTOJkqZ4XDOXh9gfSltYgCeZAwg0 Pr9mBhdxn1i8BlLjXLkRDvJNgoSyzalYz7Ctyr19dNFDn07VEv8eTrtWsubfL/y8z8H3 sFjFN4eRA53ESoDMRVwX+9uelYTIc0R0RKRHHSoJD8uF/jBU9oq83HwuW4N1gpH70s3u CxPQ== 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=5UAiUi4Ve1wc3qU9PTy7ZqzlJWDQRig0DcAs0T4PKlw=; b=rzS3nE7NyI7yXhxy7y3n2DvjBE9l70HI8P2J+Pr4FuJLvc+fyiDsm0cVI40XsZcj5i aoQTgAGIygrLiMSUFFmTp4XZt+MMKHYYIXxTwjntZWdizZca4FAIWhvrYCI75871RxLL tWuYYIbtjM1QEBp9GQjrHQS0N00AoN0METATDOMq/sV7bqz1mbpNWY9Z0JzWWmj4JqGH UvY0xtUqqcN/cDyHmASf16p849R3jMnS5nQre5xPuGJ+m8q9Fz6BWlVt7G9gXC9PLfkb sizlsbQ+B8RGfA1HzkKaDfYtcYf411VA4oa9CfVJAnRSuKfYgc7fT8dmaAODAMaRvQa1 uf3Q== 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 23-v6si30350795pgr.493.2018.09.23.02.35.38; Sun, 23 Sep 2018 02:35:52 -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 S1726512AbeIWPcG (ORCPT + 99 others); Sun, 23 Sep 2018 11:32:06 -0400 Received: from smtp21.cstnet.cn ([159.226.251.21]:48085 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726035AbeIWPcF (ORCPT ); Sun, 23 Sep 2018 11:32:05 -0400 Received: from pw-vbox.higon.com (unknown [182.150.46.145]) by APP-01 (Coremail) with SMTP id qwCowADX37dGXqdbh0KzDA--.91S2; Sun, 23 Sep 2018 17:35:06 +0800 (CST) From: Pu Wen To: bp@alien8.de, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, thomas.lendacky@amd.com Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Pu Wen Subject: [PATCH v8 06/16] x86/alternative: Init ideal_nops for Hygon Dhyana Date: Sun, 23 Sep 2018 17:35:01 +0800 Message-Id: <79e76c3173716984fe5fdd4a8e2c798bf4193205.1537533369.git.puwen@hygon.cn> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: X-CM-TRANSID: qwCowADX37dGXq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-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. Signed-off-by: Pu Wen Reviewed-by: Borislav Petkov --- 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