Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3849537pxk; Tue, 8 Sep 2020 04:21:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAKqUIbaou2Dons4FciMK3Qdbe3musIDlihiR6iV6GDq+qGCb1CrL/iJzUCGQt6BC6G+0E X-Received: by 2002:a17:906:4305:: with SMTP id j5mr26400685ejm.102.1599564117927; Tue, 08 Sep 2020 04:21:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599564117; cv=none; d=google.com; s=arc-20160816; b=RsdiXPSVS0AMxW5EETY2ZxpD60x2i4fRpKrBreP0KE4Ptn4Dpi65SMoceFbS7qrRf9 vUUn1pTVmvHgykZ3B3/MAE+20j2pTlm0vsBepnXE2aOKA38wgqd/pvP/w61K3bpFc3Xs j6CwxwIh58Cf3TsC3bhbjlkaGPZexG+8K3N3aPAbcS8po9x9CmQ7RBDvsWdCEQA9yxDo 7iMLyLh2/8NqHBMVsDkYAYxwMOfAyqKct3Ti/VDsuqrATPAVwcqkAP8APq8QSFmsvP9k gh5YHgUJ6FwsfcnFGOtOjid1wRpbLu/utvC0uHP9FX06kCMmp7kNNfbTb8pJv1zSZmug LHBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=ikP2zWNdtF4d85q43xW1BTGBs66wNJe1vBA/ubtanUA=; b=shE9tOw5sTJHUKWRyOfGnckWnWx6mTAmUVT9bHsuJV7rixJgGUjU0getphaRSNJ1wl 6dwXNSJvi9DR7Fc9C2PrMgnykbpSFEkxmJJPSlp7MCxiFc6WAFKqExP+XiPz2i4S90G/ TTSp8n/qEBXTWRD2APFXEaj8TO4TwXC4ItrE6xeIE4OhNAQxBAoSop0+9MlMyaX6KBm6 nETGHJMoWCFfMBYmGGCFhCll6QwoLG6Pv83TNMtHKztT+USzJ6YeR2ZfhVdbc3S6wb3G dRR2aCSWnBufCdjShXA/pduN/8gz9HYbDxtyMPbfEHi6+PFAOcEPLHYwS++pZd+ka0TO jbSA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sd28si11847566ejb.302.2020.09.08.04.21.35; Tue, 08 Sep 2020 04:21:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729344AbgIHLUH (ORCPT + 99 others); Tue, 8 Sep 2020 07:20:07 -0400 Received: from ZXSHCAS2.zhaoxin.com ([203.148.12.82]:46782 "EHLO ZXSHCAS2.zhaoxin.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729792AbgIHLOb (ORCPT ); Tue, 8 Sep 2020 07:14:31 -0400 Received: from zxbjmbx1.zhaoxin.com (10.29.252.163) by ZXSHCAS2.zhaoxin.com (10.28.252.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Tue, 8 Sep 2020 18:58:42 +0800 Received: from tony-HX002EA.zhaoxin.com (10.32.56.38) by zxbjmbx1.zhaoxin.com (10.29.252.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Tue, 8 Sep 2020 18:58:40 +0800 From: Tony W Wang-oc To: , , , , , , , , CC: , , , , Subject: [PATCH v1 0/2] add Centaur Family >= 7 CPUs support Date: Tue, 8 Sep 2020 18:57:44 +0800 Message-ID: <1599562666-31351-1-git-send-email-TonyWWang-oc@zhaoxin.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.32.56.38] X-ClientProxiedBy: ZXSHCAS1.zhaoxin.com (10.28.252.161) To zxbjmbx1.zhaoxin.com (10.29.252.163) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org New Centaur CPUs have Family >= 7. So, add specific initialization for these CPUs in centaur.c In order to handle Family >= 7, also use if instead two-condition switch-case in centaur.c Tony W Wang-oc (2): x86/cpu: replace two-condition switch-case with if statement x86/cpu: add Centaur Family >=7 CPUs initialization support arch/x86/kernel/cpu/centaur.c | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) -- 2.7.4