Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp359217rwb; Wed, 16 Nov 2022 01:28:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf4WwsHlqv1fZ+HB3/AQkQfyFPF6491RZQDmZhEmNeTkZernGNEV6WZpNX84vfSv2GoJZYMf X-Received: by 2002:a05:6402:2d2:b0:459:4c7b:e852 with SMTP id b18-20020a05640202d200b004594c7be852mr18719496edx.347.1668590917651; Wed, 16 Nov 2022 01:28:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668590917; cv=none; d=google.com; s=arc-20160816; b=IX2GDa0yHXYFZgSJubLjmw2lgEaEZ6LqhdlMTs/+VyLO4O+uo1d4k5sLkqANok53k1 hdPYDQ3aasEjjsWQHnwQqcWrLBAuT8VTVr85YWsD6TWMXU1uzDAF3f75k/bCSYxQDnFg +8EBigHf5DKI4GTZdcbbKGKsAZwiSxu5pZ+DFOVNpC7n7o3g+2HqIJkF4CV332Mf8Lbx rrWx1OFDUFSWnk2hxCB12kUNDwxv4vOvjxvVKNs0EIoQMS1zgYBWzKf7ZiYB9KuT+w96 U3UCpjdpn3I0VgIe4Ljwf39HJWKwNlfgBUUGpqk6tKo5IDOfbxeW+Z1bb8TXwSHLIjpt IwXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=f5LJJJLKCH1DAYq6JhwQ5TabipDFex5oP5iOp++77Wg=; b=zJDvBTjg68ZzjmesRwl02L66eq8Lw7D75BTZi0Fk117XOJCp+ysUpT0zFlWAAYZ/cM Nbz7bfdRgrY7rj+RgrUPR8Ztx8VTJrh177+i+U0r1SMr5u0FMGaVCYkOHilBI19CrczI lNgWEsg1ow3DaK/DiWpgtyPk6MXDEnnDDX9A5o2ZZeUvSU+0jGntAcT4ZQ/z3HiPM7eJ 5/yfhSSzBWHdc0y4SVoBqlIwKot3nTyBv+fk/hpYf+Z15OZrbyqimgsirC3whehyOHFB cHPQ7oZb+x89DH/HvU4P3tuZ/uvL4wz2nhQlhVByn3aO39UKuJHm7e/MzWr5NYn/L6lf E04Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=LOq1ykHU; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qb37-20020a1709077ea500b007ae7d10a27bsi15650605ejc.15.2022.11.16.01.28.15; Wed, 16 Nov 2022 01:28:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=LOq1ykHU; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233540AbiKPJOo (ORCPT + 91 others); Wed, 16 Nov 2022 04:14:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232774AbiKPJOd (ORCPT ); Wed, 16 Nov 2022 04:14:33 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A7CE5F41; Wed, 16 Nov 2022 01:14:32 -0800 (PST) Date: Wed, 16 Nov 2022 09:14:29 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1668590070; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=f5LJJJLKCH1DAYq6JhwQ5TabipDFex5oP5iOp++77Wg=; b=LOq1ykHU2aK9dW4KGfxhSNbmg67N+WuNLvKqZC87sqMUTMjP3twQzKrLQGQBeAV2P7qQ6L qL9oErMNBYZ7CnyRTojR0scFjhSdtw0Pp9ajQM/vY3BvvKZ8DRq1SQahKFHO+FmW33LTce +ukCPZL9IU3XSJ7aIFq288w7tfcJUWQy+RGUIV8Vhl2AJL6VonwI3F6gsoB1JBm5MBLLOy C/tB3OsksvHTttFbE8CiyvyvNs41tPa4CoYOHZZa+cZTmTH6DHBOymCBb6FWV4YJQi98ue w1QbILb/L5k/XRjRt3kohfQ5i6zHV1hp3x+21ZWMOrO966PZd6UToVZV6H7R6w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1668590070; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=f5LJJJLKCH1DAYq6JhwQ5TabipDFex5oP5iOp++77Wg=; b=FebQKjwMFME4ZFxdepCvPeRbtYQuKBfj3wjj918hQnCZQO4vvm+T+6l0FKGHi2v8aywsTS qoxHmmz2AMGryYDg== From: "tip-bot2 for Rafael Mendonca" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: perf/core] perf/x86: Remove unused variable 'cpu_type' Cc: Rafael Mendonca , "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20221028203006.976831-1-rafaelmendsr@gmail.com> References: <20221028203006.976831-1-rafaelmendsr@gmail.com> MIME-Version: 1.0 Message-ID: <166859006941.4906.6854286305825561239.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the perf/core branch of tip: Commit-ID: 8e356858be2989355aafcc96af541fedf9fb486f Gitweb: https://git.kernel.org/tip/8e356858be2989355aafcc96af541fedf9fb486f Author: Rafael Mendonca AuthorDate: Fri, 28 Oct 2022 17:30:05 -03:00 Committer: Peter Zijlstra CommitterDate: Tue, 15 Nov 2022 22:30:11 +01:00 perf/x86: Remove unused variable 'cpu_type' Since the removal of function x86_pmu_update_cpu_context() by commit 983bd8543b5a ("perf: Rewrite core context handling"), there is no need to query the type of the hybrid CPU inside function init_hw_perf_events(). Fixes: 983bd8543b5a ("perf: Rewrite core context handling") Signed-off-by: Rafael Mendonca Signed-off-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/20221028203006.976831-1-rafaelmendsr@gmail.com --- arch/x86/events/core.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/x86/events/core.c b/arch/x86/events/core.c index 337a99a..85a63a4 100644 --- a/arch/x86/events/core.c +++ b/arch/x86/events/core.c @@ -2161,13 +2161,9 @@ static int __init init_hw_perf_events(void) if (err) goto out2; } else { - u8 cpu_type = get_this_hybrid_cpu_type(); struct x86_hybrid_pmu *hybrid_pmu; int i, j; - if (!cpu_type && x86_pmu.get_hybrid_cpu_type) - cpu_type = x86_pmu.get_hybrid_cpu_type(); - for (i = 0; i < x86_pmu.num_hybrid_pmus; i++) { hybrid_pmu = &x86_pmu.hybrid_pmu[i];