From patchwork Thu Mar 1 20:25:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Monakov X-Patchwork-Id: 10252479 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3EF4460365 for ; Thu, 1 Mar 2018 20:29:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2AE5D283FF for ; Thu, 1 Mar 2018 20:29:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1F3C828421; Thu, 1 Mar 2018 20:29:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EBE2F283FF for ; Thu, 1 Mar 2018 20:29:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=8fbQqbl+b/hVQE3+rJYKBClL2729qEu7VD+q/SP0m6A=; b=Zvu 765WSgHisd1Aw63ux43QoyafXfUCZw6DefhD6bvwAnIVirkuSW/9+NyMGyDOmlCvaL5MnNcy19Cju dWXbgNnx1nnvKK2MSMdsppTo9q5/m89iRqZRaFrlaZ63zHObpK9u5M3G6wPrbaia6mBHkK8GIXx48 NHCKYjhGu1euOxknbDhzHC3nMBYfyvf4zoZ/Rf5BA+/xZqlmk8j2USHSUCFWoGllTeXRcsIrLCFMN /cFhcEScW18R6C3hQlJ50p+Nwk8SezGvjJ8Z98vd6TlP566mqgeD/cQ3s6eQ66rDRbu6LfFhENFTd m9QPboADJh4GUo2yEm5Kr43o8p81BaA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1erUp2-0005R5-HH; Thu, 01 Mar 2018 20:29:00 +0000 Received: from bran.ispras.ru ([83.149.199.196] helo=smtp.ispras.ru) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1erUmM-0003pW-2p for linux-arm-kernel@lists.infradead.org; Thu, 01 Mar 2018 20:26:20 +0000 Received: from monopod.intra.ispras.ru (monopod.intra.ispras.ru [10.10.3.121]) by smtp.ispras.ru (Postfix) with ESMTP id 13B5522284; Thu, 1 Mar 2018 23:25:56 +0300 (MSK) From: Alexander Monakov To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] drivers/perf: arm_pmu_platform: do not warn about affinity on uniprocessor Date: Thu, 1 Mar 2018 23:25:36 +0300 Message-Id: <20180301202536.11776-1-amonakov@ispras.ru> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180301_122615_416481_8D280464 X-CRM114-Status: UNSURE ( 8.72 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Alexander Monakov , Will Deacon MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP If there is exactly one CPU present, there is no ambiguity: do not warn that PMU setup would need to guess IRQ affinity. Cc: Mark Rutland Cc: Will Deacon Signed-off-by: Alexander Monakov --- This helps to avoid a useless warning on single-CPU systems with a PMU. drivers/perf/arm_pmu_platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/perf/arm_pmu_platform.c b/drivers/perf/arm_pmu_platform.c index 91b224eced18..e5740b6dee74 100644 --- a/drivers/perf/arm_pmu_platform.c +++ b/drivers/perf/arm_pmu_platform.c @@ -131,7 +131,7 @@ static int pmu_parse_irqs(struct arm_pmu *pmu) return pmu_parse_percpu_irq(pmu, irq); } - if (!pmu_has_irq_affinity(pdev->dev.of_node)) { + if (nr_cpu_ids != 1 && !pmu_has_irq_affinity(pdev->dev.of_node)) { pr_warn("no interrupt-affinity property for %pOF, guessing.\n", pdev->dev.of_node); }