Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp51658pxb; Wed, 14 Apr 2021 09:12:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4u0zTqURF8F6z8V8+Syixd5bj6k37GCjX9z+XOLlmoPAUK6F9NkJn8nxl+eOstUWXxA25 X-Received: by 2002:a17:906:a45a:: with SMTP id cb26mr12780224ejb.537.1618416740539; Wed, 14 Apr 2021 09:12:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618416740; cv=none; d=google.com; s=arc-20160816; b=ptQs0Mc8Y7K62mtDKVtS1y/H/5D+orgpHFtBfnE/fm4rzHsgUSkLHL/qEvq6cyNuvs flhg+Kk70/39HdZ8Q4n2PufXij1eyLN7XoxTgxD9+hhlsJ7UJ0yEQ4CmKyEPfPOAEtBq BbRspbNDWW5zBU5nNyd3lgzaMU2mX3og1FtnTS6bq2KJpL0A0dzt/UbO5pgXvyXk7mzO l0V1Sn9NbCF2SqdqpHkMmbuP6+cbh6gjPHmc/JPIw0skIYHHbhcBRlIRqVP/0AK55Kzd O0NskJcpTPlIc3Kg7wIQBGLb+WloqLmHZC//F5guq728a0UQscRqdJVINu00IRwPEIqG 2RjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=r2ENHMHoB+Rph+0BqzCLFe5R43ZEfrpQ4bQ9gF4PJ3A=; b=iAP65YPyXcJrqgL+bwkOBgnpLsUVlwinKuU1tRC578UgiA+w4gGTiIyK8f2DvCEjXt WF4p3BvQ2PO2NhzUmoFc9MnOyLSllQlys4Su9v34P0Ww7v5zNAHnKqrkmPzb0xvBY1ZQ Bo/4Ia816z1syqv3hdS8GeWlTCZ6mQKQGIXkd6Ze60NNSwIqKuhSdHZfXB003xJs04wT L9M620tk764DCbQZN98N5uep0QjskRU43RySXmJIXP5PK+yG9bf00h/4s6Fx9ZzXu6cX sIv7PqmcssEfx5MEnLh/P0/jbXfxvwZtzCh36+KsdtkfLhlPWzqPivvdRwFxE6I54UPO NBuw== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h16si4743ede.206.2021.04.14.09.11.56; Wed, 14 Apr 2021 09:12:20 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351640AbhDNNov (ORCPT + 99 others); Wed, 14 Apr 2021 09:44:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:52336 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351602AbhDNNoq (ORCPT ); Wed, 14 Apr 2021 09:44:46 -0400 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E341A6120E; Wed, 14 Apr 2021 13:44:24 +0000 (UTC) Received: from 78.163-31-62.static.virginmediabusiness.co.uk ([62.31.163.78] helo=why.lan) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lWfod-007RSZ-5a; Wed, 14 Apr 2021 14:44:23 +0100 From: Marc Zyngier To: kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org Cc: Mark Rutland , Will Deacon , Rich Felker , Yoshinori Sato , Peter Zijlstra , Arnaldo Carvalho de Melo , Christian Borntraeger , Heiko Carstens , nathan@kernel.org, Viresh Kumar , James Morse , Suzuki K Poulose , Alexandru Elisei , kernel-team@android.com Subject: [PATCH 2/5] arm64: Get rid of oprofile leftovers Date: Wed, 14 Apr 2021 14:44:06 +0100 Message-Id: <20210414134409.1266357-3-maz@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210414134409.1266357-1-maz@kernel.org> References: <20210414134409.1266357-1-maz@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 62.31.163.78 X-SA-Exim-Rcpt-To: kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, mark.rutland@arm.com, will@kernel.org, dalias@libc.org, ysato@users.sourceforge.jp, peterz@infradead.org, acme@kernel.org, borntraeger@de.ibm.com, hca@linux.ibm.com, nathan@kernel.org, viresh.kumar@linaro.org, james.morse@arm.com, suzuki.poulose@arm.com, alexandru.elisei@arm.com, kernel-team@android.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org perf_pmu_name() and perf_num_counters() are now unused. Drop them. Signed-off-by: Marc Zyngier --- drivers/perf/arm_pmu.c | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/drivers/perf/arm_pmu.c b/drivers/perf/arm_pmu.c index 2d10d84fb79c..d4f7f1f9cc77 100644 --- a/drivers/perf/arm_pmu.c +++ b/drivers/perf/arm_pmu.c @@ -581,33 +581,6 @@ static const struct attribute_group armpmu_common_attr_group = { .attrs = armpmu_common_attrs, }; -/* Set at runtime when we know what CPU type we are. */ -static struct arm_pmu *__oprofile_cpu_pmu; - -/* - * Despite the names, these two functions are CPU-specific and are used - * by the OProfile/perf code. - */ -const char *perf_pmu_name(void) -{ - if (!__oprofile_cpu_pmu) - return NULL; - - return __oprofile_cpu_pmu->name; -} -EXPORT_SYMBOL_GPL(perf_pmu_name); - -int perf_num_counters(void) -{ - int max_events = 0; - - if (__oprofile_cpu_pmu != NULL) - max_events = __oprofile_cpu_pmu->num_events; - - return max_events; -} -EXPORT_SYMBOL_GPL(perf_num_counters); - static int armpmu_count_irq_users(const int irq) { int cpu, count = 0; @@ -979,9 +952,6 @@ int armpmu_register(struct arm_pmu *pmu) if (ret) goto out_destroy; - if (!__oprofile_cpu_pmu) - __oprofile_cpu_pmu = pmu; - pr_info("enabled with %s PMU driver, %d counters available%s\n", pmu->name, pmu->num_events, has_nmi ? ", using NMIs" : ""); -- 2.29.2