From patchwork Fri Sep 18 16:26:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 53930 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by patches.linaro.org (Postfix) with ESMTPS id 25815218E3 for ; Fri, 18 Sep 2015 16:29:08 +0000 (UTC) Received: by lamf6 with SMTP id f6sf21691650lam.1 for ; Fri, 18 Sep 2015 09:29:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=mExyFV0U6nPhSc4mY/WzAHTIoR2VmCpYNnTuvQbDv24=; b=UVLasa4/LcFbIphWVJEBAR4iV8+log31RZwgCem1DD0x4MdAJwTcuw9kU5lvUXRaxb HKlVCTZ9a2YHDL4QAaHovhtj2+6S7ejdKRluUa1To69C1R/de2z6gP4PpZL+lXiVB6E8 kjXVQOTC97UBi9FTHvmlm5wV6VJ0p/Xljjfx8j+zfx0ePROfg6r6Jx3tAquJqnyscD5C JKF9tvZoILGzNZX6E6K9C//nG4y+MDkMlSfuL4nkj7xob9hm7NSwsjFckv++KNfBORUv aBiAdGISb/vL2HdG6iTlcvgx5NNHG7Zx6aqLISZimJgeWv4F+w8/TGfl8TlyK+0RKZo7 J7gg== X-Gm-Message-State: ALoCoQn0YgHqQzqxDZt1/VtR3gUW971UmTa7DatCCl4PvDZhdZ/0it95afAzokN1C42lLw5PLTva X-Received: by 10.112.202.165 with SMTP id kj5mr1062856lbc.5.1442593747143; Fri, 18 Sep 2015 09:29:07 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.224.164 with SMTP id rd4ls247696lac.99.gmail; Fri, 18 Sep 2015 09:29:06 -0700 (PDT) X-Received: by 10.152.234.72 with SMTP id uc8mr3650858lac.80.1442593746977; Fri, 18 Sep 2015 09:29:06 -0700 (PDT) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com. [209.85.215.50]) by mx.google.com with ESMTPS id v3si3953392lav.138.2015.09.18.09.29.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Sep 2015 09:29:06 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) client-ip=209.85.215.50; Received: by lagj9 with SMTP id j9so34119096lag.2 for ; Fri, 18 Sep 2015 09:29:06 -0700 (PDT) X-Received: by 10.152.26.41 with SMTP id i9mr3594212lag.36.1442593746856; Fri, 18 Sep 2015 09:29:06 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp402363lbq; Fri, 18 Sep 2015 09:29:06 -0700 (PDT) X-Received: by 10.107.137.69 with SMTP id l66mr15165122iod.60.1442593745808; Fri, 18 Sep 2015 09:29:05 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b6si7520957ign.69.2015.09.18.09.29.05; Fri, 18 Sep 2015 09:29:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754745AbbIRQ1X (ORCPT + 30 others); Fri, 18 Sep 2015 12:27:23 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:33563 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932082AbbIRQ1R (ORCPT ); Fri, 18 Sep 2015 12:27:17 -0400 Received: by pacex6 with SMTP id ex6so55405556pac.0 for ; Fri, 18 Sep 2015 09:27:17 -0700 (PDT) X-Received: by 10.66.162.66 with SMTP id xy2mr8050738pab.55.1442593637237; Fri, 18 Sep 2015 09:27:17 -0700 (PDT) Received: from t430.cg.shawcable.net ([184.64.168.246]) by smtp.gmail.com with ESMTPSA id la4sm9847027pbc.76.2015.09.18.09.27.16 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 18 Sep 2015 09:27:16 -0700 (PDT) From: Mathieu Poirier To: gregkh@linuxfoundation.org, a.p.zijlstra@chello.nl, alexander.shishkin@linux.intel.com, acme@kernel.org, mingo@redhat.com, corbet@lwn.net Cc: adrian.hunter@intel.com, zhang.chunyan@linaro.org, mike.leach@arm.com, tor@ti.com, al.grant@arm.com, pawel.moll@arm.com, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 11/20] coresight: making coresight_build_paths() public Date: Fri, 18 Sep 2015 10:26:25 -0600 Message-Id: <1442593594-10665-12-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1442593594-10665-1-git-send-email-mathieu.poirier@linaro.org> References: <1442593594-10665-1-git-send-email-mathieu.poirier@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: mathieu.poirier@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , That way a path can be built outside of the core framework, something useful when a PMU is initialised from the perf sub system. Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-priv.h | 3 +++ drivers/hwtracing/coresight/coresight.c | 5 ++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight-priv.h b/drivers/hwtracing/coresight/coresight-priv.h index 62fcd98cc7cf..8a52fdcb4bd6 100644 --- a/drivers/hwtracing/coresight/coresight-priv.h +++ b/drivers/hwtracing/coresight/coresight-priv.h @@ -52,6 +52,9 @@ static inline void CS_UNLOCK(void __iomem *addr) } while (0); } +int coresight_build_paths(struct coresight_device *csdev, + struct list_head *path, bool enable); + #ifdef CONFIG_CORESIGHT_SOURCE_ETM3X extern int etm_readl_cp14(u32 off, unsigned int *val); extern int etm_writel_cp14(u32 off, u32 val); diff --git a/drivers/hwtracing/coresight/coresight.c b/drivers/hwtracing/coresight/coresight.c index a3dcafb81700..7a54d8069670 100644 --- a/drivers/hwtracing/coresight/coresight.c +++ b/drivers/hwtracing/coresight/coresight.c @@ -301,9 +301,8 @@ static int coresight_disable_path(struct list_head *path) return 0; } -static int coresight_build_paths(struct coresight_device *csdev, - struct list_head *path, - bool enable) +int coresight_build_paths(struct coresight_device *csdev, + struct list_head *path, bool enable) { int i, ret = -EINVAL; struct coresight_connection *conn;