Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp631410ybd; Sat, 22 Jun 2019 11:03:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqw+wR4VYWWMUOYwC4i38wsj1UpUJgihQuqND23NpbYhx0XuMaF6aGvmRRObn9TDkmGr4f5P X-Received: by 2002:a63:5a1f:: with SMTP id o31mr24154930pgb.254.1561226603334; Sat, 22 Jun 2019 11:03:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561226603; cv=none; d=google.com; s=arc-20160816; b=x8X3g1roTGA94z1x6AOJPQSM5NUr9YEC6TL1jLRcS0We8Zd5u7F7IHXImCi+KHK8Er LQ8Z8lSY4sqHQkS687SLcBiFi7Tj8WVEBHOV4e4pFmXqiXAanZfrrlfY0yCipQKibz0T c9ENfXKeT5AgY2vZhQHY/ldVzQz4lpOX7Lux05P3Le9KowH778qjq3OREpyBrOZ7oUnZ fXTYP55nuGxyB4ccVwhN1rFKSe+eXiPLh9Jgusbx424n4/CJbalo7g08YdH3xQFKJUN4 zg1grdGzABMJG2Gj5ae98sm6ODnc736Iu5oF5i4+/5ld9eavj1ldVjPUh9jZEcotwGOV wD+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:to:from:subject:message-id; bh=ERrfGHg+stpxB3ODCmbK9PBjsw5RlvaQhyyLzuBTpTY=; b=mmYbwaXV09FPwT8OtxAPt6WjVfuYpS+Cv+iMnK/nDykH2nR8+hjCFy4ihAvE3Drg5U unfECI5H0rrSoqXXr5fw7COdnTadD1CDY84mSOjLi6/J5pYYlEM+vCDBv1YHyTfVPn+3 m3Rr+BAfwAfVRtbfSi9cwlpPqFLXc8NunZwwko45oVBTBS2fYfBN36cZkFjF2dW/dDG9 voA2zQkArrmZKw1B1bB9nZ6kWG4jFQ6JYnnqyv+n3OtCOHHmkDfEOb63bkM2zpurmx8J c9Qoy7rcF3gOWpbkRDvz/3lrjvB5fhTNa8h5d3jrdUM9KuruWFiG2iNHATSiRSrE8XAd 9UzA== 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 m26si5216695pgv.388.2019.06.22.11.03.06; Sat, 22 Jun 2019 11:03:23 -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 S1726410AbfFVSBX (ORCPT + 99 others); Sat, 22 Jun 2019 14:01:23 -0400 Received: from smtprelay0029.hostedemail.com ([216.40.44.29]:43104 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726286AbfFVSBW (ORCPT ); Sat, 22 Jun 2019 14:01:22 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay01.hostedemail.com (Postfix) with ESMTP id 26E81100E86C2; Sat, 22 Jun 2019 18:01:21 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::::::,RULES_HIT:41:355:379:599:800:960:967:973:988:989:1260:1277:1311:1313:1314:1345:1359:1381:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2525:2553:2559:2563:2682:2685:2828:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3352:3622:3865:3867:3868:3871:3872:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4250:4321:5007:6119:6737:7903:7904:8957:9025:10004:10400:10848:10967:11026:11232:11657:11658:11914:12043:12048:12266:12297:12438:12555:12679:12740:12760:12895:13069:13161:13229:13311:13357:13439:14180:14181:14659:14721:21060:21063:21080:21365:21451:21627:30012:30054:30090:30091,0,RBL:error,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:30,LUA_SUMMARY:none X-HE-Tag: patch81_45b8c85498e5e X-Filterd-Recvd-Size: 2250 Received: from XPS-9350.home (cpe-23-242-196-136.socal.res.rr.com [23.242.196.136]) (Authenticated sender: joe@perches.com) by omf06.hostedemail.com (Postfix) with ESMTPA; Sat, 22 Jun 2019 18:01:19 +0000 (UTC) Message-ID: <7ec724a310a710e6415320ff530daba0e1d30505.camel@perches.com> Subject: Re: [tip:x86/cpu] x86/cpu: Create Zhaoxin processors architecture support file From: Joe Perches To: HerryYang@zhaoxin.com, CooperYan@zhaoxin.com, linux-kernel@vger.kernel.org, hpa@zytor.com, lenb@kernel.org, gregkh@linuxfoundation.org, QiyuanWang@zhaoxin.com, mingo@kernel.org, DavidWang@zhaoxin.com, tglx@linutronix.de, rjw@rjwysocki.net, TonyWWang-oc@zhaoxin.com, linux-tip-commits@vger.kernel.org Date: Sat, 22 Jun 2019 11:01:17 -0700 In-Reply-To: References: <01042674b2f741b2aed1f797359bdffb@zhaoxin.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.5-0ubuntu0.18.10.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2019-06-22 at 03:16 -0700, tip-bot for Tony W Wang-oc wrote: > Commit-ID: 761fdd5e3327db6c646a09bab5ad48cd42680cd2 > Gitweb: https://git.kernel.org/tip/761fdd5e3327db6c646a09bab5ad48cd42680cd2 > Author: Tony W Wang-oc > AuthorDate: Tue, 18 Jun 2019 08:37:05 +0000 > Committer: Thomas Gleixner > CommitDate: Sat, 22 Jun 2019 11:45:57 +0200 > > x86/cpu: Create Zhaoxin processors architecture support file > [] > diff --git a/arch/x86/kernel/cpu/zhaoxin.c b/arch/x86/kernel/cpu/zhaoxin.c [] > +static void init_zhaoxin_cap(struct cpuinfo_x86 *c) > +{ > + u32 lo, hi; > + > + /* Test for Extended Feature Flags presence */ > + if (cpuid_eax(0xC0000000) >= 0xC0000001) { > + u32 tmp = cpuid_edx(0xC0000001); > + > + /* Enable ACE unit, if present and disabled */ > + if ((tmp & (ACE_PRESENT | ACE_ENABLED)) == ACE_PRESENT) { trivia: Perhaps this is more intelligible for humans to read and it deduplicates the comment as: if ((tmp & ACE_PRESENT) && !(tmp & ACE_ENABLED)) The compiler produces the same object code.