From patchwork Thu Dec 24 04:13:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 41546 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C8C1E3894C25; Thu, 24 Dec 2020 04:13:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C8C1E3894C25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1608783200; bh=9SGx9d0BnNJzGB/Xi0mwMo1Y+2YUtVqAhvVZf+Az9bo=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=SsAHJ6zNYaeyu/WuJQKdaxqjl4N6VvZ1tW5sibvjmKiBHLCkE48jlQdguhJ62FjEH JfPw/Yaj9yb8H3WEIpkS/geHyUSiNrinL5M3a0Ih/x/H8tqAxEgLjOa/IA5/tAIsVL zShgiXT4tao6KooPOFmpS+PJL9KT3Z5WQQo9C6xY= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by sourceware.org (Postfix) with ESMTPS id 29A913857C6C for ; Thu, 24 Dec 2020 04:13:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 29A913857C6C Received: by mail-pf1-x42b.google.com with SMTP id c12so596684pfo.10 for ; Wed, 23 Dec 2020 20:13:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=9SGx9d0BnNJzGB/Xi0mwMo1Y+2YUtVqAhvVZf+Az9bo=; b=Ohc1knZG/G+NTcK7UBNlL7qvtyBecGSVmxNwXRKCci+daCf4dsEeoTDUxKOjKWEDLo CJP0HVFrx14ZICMjwggLinFdfgQ2SKi9kuqq6vhVZPPuRa0/9NEwH6WN7G/J2E8IGbmd SrXJkJOrm61uns4WSWtTZTwMYKakVhoH6kpSdLcDqm4iwu38XO7OlvHb3HbcoS9MFTLt 3drpmAZcOt+QdNYZ9y8jYVgZGF2Xj7wdoOWwKkspXpaGPamUumkHS0qF0xPRO5XTy3Yk 82u0bjL9hB9J+VO4DU5m+1KqdK4fXe+lLbDfgfrB2XTrLYlKYVZtcJeahpRANtP5aJhv ao9A== X-Gm-Message-State: AOAM531wQBDu61Ys6kYRXsxXo+Tr+1mHd2du27PCiC26zJxSR6QonTOB 0lq05/UD2jfy3P0yRaaUIVRNUhMATaM= X-Google-Smtp-Source: ABdhPJx45E3aBYPGC9/1Ed6NCtRaQ+5ryJ9uPQr9QlL+Nl+YeLstp2q78jsh/I40qJnZ0nlmouIRUA== X-Received: by 2002:a05:6a00:16c5:b029:19b:696:28a0 with SMTP id l5-20020a056a0016c5b029019b069628a0mr26772401pfc.9.1608783196955; Wed, 23 Dec 2020 20:13:16 -0800 (PST) Received: from gnu-cfl-2.localdomain (c-69-181-90-243.hsd1.ca.comcast.net. [69.181.90.243]) by smtp.gmail.com with ESMTPSA id nm6sm976333pjb.25.2020.12.23.20.13.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Dec 2020 20:13:16 -0800 (PST) Received: from gnu-cfl-2.localdomain (localhost [IPv6:::1]) by gnu-cfl-2.localdomain (Postfix) with ESMTP id 2582E1A0237 for ; Wed, 23 Dec 2020 20:13:15 -0800 (PST) To: libc-alpha@sourceware.org Subject: [PATCH] x86: Remove the duplicated CPU_FEATURE_CPU_P Date: Wed, 23 Dec 2020 20:13:13 -0800 Message-Id: <20201224041313.294603-1-hjl.tools@gmail.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-Spam-Status: No, score=-3039.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: "H.J. Lu via Libc-alpha" From: "H.J. Lu" Reply-To: "H.J. Lu" Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" CPU_FEATURE_CPU_P is defined in sysdeps/x86/sys/platform/x86.h. Remove the duplicated CPU_FEATURE_CPU_P in sysdeps/x86/include/cpu-features.h. --- sysdeps/x86/include/cpu-features.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/sysdeps/x86/include/cpu-features.h b/sysdeps/x86/include/cpu-features.h index f62be0b9b3..0df57d9a17 100644 --- a/sysdeps/x86/include/cpu-features.h +++ b/sysdeps/x86/include/cpu-features.h @@ -57,8 +57,6 @@ enum |= ptr->features[index_cpu_##name].cpuid.reg_##name & bit_cpu_##name; # define CPU_FEATURE_PREFERRED_P(ptr, name) \ ((ptr->preferred[index_arch_##name] & bit_arch_##name) != 0) -# define CPU_FEATURE_CPU_P(ptr, name) \ - CPU_FEATURE_CHECK_P (ptr, name, cpuid) /* HAS_CPU_FEATURE evaluates to true if CPU supports the feature. */ # undef HAS_CPU_FEATURE