From patchwork Thu Jul 26 20:53:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 28640 Received: (qmail 58040 invoked by alias); 26 Jul 2018 20:53:57 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 57557 invoked by uid 89); 26 Jul 2018 20:53:56 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.4 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:2542, family X-HELO: mail-oi0-f67.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=SQ7/1cEYiSectieMclpVwxs89HI6o3Buy2LbdY7D76E=; b=Hl3urSg2fNWHtL5oXTdIW1BlWdxrADyhWekJNuc8KYEMSVwdsv3DK7K+C8yvhdS+ww yurI/Xrfzg8SD5YLYKsx+rjKNOoYPJBvpx0vxG/utJ1ZMw18j85a1CbkIf4JwirXBuj4 Xo60XoQ0GimK6XqsNYtgFAOS3tOCK2NMgiUDG5B9oQhhTvuoOViBBMxg0H3EtwYwslS5 y4Don4Q3V9SLHDVzkyiWFDAwUgHnFt7J6syitPnZ0Yu15hScz8WrrIrrTSGDZ0wEJqbE Dl33RTNc5NtjByWfptNPJqJMwb8iewRScbxEJxv1npt67wFxWaAjSXVrvtEnlg4vwp/6 CFJw== MIME-Version: 1.0 From: "H.J. Lu" Date: Thu, 26 Jul 2018 13:53:52 -0700 Message-ID: Subject: [PATCH] x86: Rename get_common_indeces to get_common_indices To: "Carlos O'Donell" Cc: GNU C Library On Thu, Jul 26, 2018 at 1:37 PM, Carlos O'Donell wrote: > On 07/26/2018 04:32 PM, H.J. Lu wrote: >> On Thu, Jul 26, 2018 at 1:05 PM, Carlos O'Donell wrote: >>> On 07/26/2018 02:07 PM, H.J. Lu wrote: >>>> [BZ #23459] >>>> * sysdeps/x86/cpu-features.c (get_extended_indeces): New >>>> function. >>>> (init_cpu_features): Call get_extended_indeces for both Intel >>>> and AMD CPUs. >>>> --- >>> >>> OK for 2.28 after you fix the indexes v.s indices issue. >>> >>> Reviewed-by: Carlos O'Donell >>> >> >> This is the patch I am checking in. > > There are *many* incorrect spellings of indices too which you might > fix later ;-) > Like this? Reviewed-by: Carlos O'Donell From 3c1caa7a4e216fc651d39a2968d445a06bf0dc4e Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 26 Jul 2018 13:51:49 -0700 Subject: [PATCH] x86: Rename get_common_indeces to get_common_indices * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to ... (get_common_indices): This. (init_cpu_features): Updated. --- sysdeps/x86/cpu-features.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sysdeps/x86/cpu-features.c b/sysdeps/x86/cpu-features.c index ea0b64fdb9..51642f8b6a 100644 --- a/sysdeps/x86/cpu-features.c +++ b/sysdeps/x86/cpu-features.c @@ -57,7 +57,7 @@ get_extended_indices (struct cpu_features *cpu_features) } static void -get_common_indeces (struct cpu_features *cpu_features, +get_common_indices (struct cpu_features *cpu_features, unsigned int *family, unsigned int *model, unsigned int *extended_model, unsigned int *stepping) { @@ -235,7 +235,7 @@ init_cpu_features (struct cpu_features *cpu_features) kind = arch_kind_intel; - get_common_indeces (cpu_features, &family, &model, &extended_model, + get_common_indices (cpu_features, &family, &model, &extended_model, &stepping); get_extended_indices (cpu_features); @@ -351,7 +351,7 @@ init_cpu_features (struct cpu_features *cpu_features) kind = arch_kind_amd; - get_common_indeces (cpu_features, &family, &model, &extended_model, + get_common_indices (cpu_features, &family, &model, &extended_model, &stepping); get_extended_indices (cpu_features); @@ -388,7 +388,7 @@ init_cpu_features (struct cpu_features *cpu_features) else { kind = arch_kind_other; - get_common_indeces (cpu_features, NULL, NULL, NULL, NULL); + get_common_indices (cpu_features, NULL, NULL, NULL, NULL); } /* Support i586 if CX8 is available. */ -- 2.17.1