Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp50667pxb; Wed, 14 Apr 2021 09:11:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjMN7oP42Umt2M7SnMGjh9lkTe6lX6K8Bgc9OPZryGzIlwZxHqvUPnRM8K2FBjT16JKLa/ X-Received: by 2002:a62:e70e:0:b029:245:3a00:5720 with SMTP id s14-20020a62e70e0000b02902453a005720mr30433158pfh.0.1618416670852; Wed, 14 Apr 2021 09:11:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618416670; cv=none; d=google.com; s=arc-20160816; b=ZDMe0TT+xDO7eQRo8BU7rbDl45+/4t/ZKl3K5zdDUyxn7Obq7KnzwaYeS6VpF0Wj58 DdZglcdXcarFF9fco1wDAKo8+1Gply/WLJhG2TDFQaB69rsNq2RSNJuN4yvGPaiyvMod HaioLgVco+gOs7VSsWUAd7iIZiYfQr6dERui1ZqzZTsk9kDAlbAyggOjw0z8sDkWUT1r FXuY0xqz/jfRnmIgxZgKZB7CSeJx2FQPjRLUWU3SteSbv3j8O4u4uvBu7gXvPuC+4yxk Fvt/ylILjaxSjzPwoyS5D9zh/uIwS3FrHGM2iNnxVbhpJOIV+1u/FjGz0IRevJLlv3O/ oibw== 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=3K36cPWU2wwbwD9Xgt1D+00FIXo5znqT+wRrzJJrfzE=; b=E5ZXoZx3ddTWsAxAWToIs0imnpJZIYu1FTGUqTjsHUMf6wvdwYn8NIj/CQowoNHulk ItByPlp7k9j0NBEiqmxWBE6CrQJT4KcVsvKjCDnyb3FyfLHTajukyIpOvllHgf2/xJGV gyjPhyn5zd0Er+ICXjvUqgeYsZUQB6dq6B1ezMtl4IYo4EdqLkwfvXWU3BJwyoSr64Vq w6sTkmly/qm6wmeZI2/g++WSx9VyPTvEleley4+mslWkZ4K9eWN2L1Uru5vQjXmwGjnj h066OOkZcH8C7QgsRwrOeft4KBQmeyjIkuNohr0dh1XNjsSRp7+lWgxv49qBzV1JnqUd zfSA== 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 p24si52702plo.199.2021.04.14.09.10.58; Wed, 14 Apr 2021 09:11:10 -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 S1351621AbhDNNos (ORCPT + 99 others); Wed, 14 Apr 2021 09:44:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:52378 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351611AbhDNNor (ORCPT ); Wed, 14 Apr 2021 09:44:47 -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 9BEFC611C9; Wed, 14 Apr 2021 13:44:25 +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-Vw; Wed, 14 Apr 2021 14:44:24 +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 3/5] s390: Get rid of oprofile leftovers Date: Wed, 14 Apr 2021 14:44:07 +0100 Message-Id: <20210414134409.1266357-4-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 unused. Drop them. Signed-off-by: Marc Zyngier --- arch/s390/kernel/perf_event.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/arch/s390/kernel/perf_event.c b/arch/s390/kernel/perf_event.c index 1e75cc983546..ea7729bebaa0 100644 --- a/arch/s390/kernel/perf_event.c +++ b/arch/s390/kernel/perf_event.c @@ -23,27 +23,6 @@ #include #include -const char *perf_pmu_name(void) -{ - if (cpum_cf_avail() || cpum_sf_avail()) - return "CPU-Measurement Facilities (CPU-MF)"; - return "pmu"; -} -EXPORT_SYMBOL(perf_pmu_name); - -int perf_num_counters(void) -{ - int num = 0; - - if (cpum_cf_avail()) - num += PERF_CPUM_CF_MAX_CTR; - if (cpum_sf_avail()) - num += PERF_CPUM_SF_MAX_CTR; - - return num; -} -EXPORT_SYMBOL(perf_num_counters); - static struct kvm_s390_sie_block *sie_block(struct pt_regs *regs) { struct stack_frame *stack = (struct stack_frame *) regs->gprs[15]; -- 2.29.2