From patchwork Sun Oct 18 18:24:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 55211 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by patches.linaro.org (Postfix) with ESMTPS id 17ED522FFA for ; Sun, 18 Oct 2015 18:30:48 +0000 (UTC) Received: by wiyb4 with SMTP id b4sf16840139wiy.2 for ; Sun, 18 Oct 2015 11:30:47 -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=247eAn4kIQ5CanMLjdyFzCPRzrzLowlCkHt0cqcm024=; b=PTJpEqg8cKW80OA6+2DlFEGJoq48j1GbjuEyWMseWauNS38SXt//uZKSCwu9x44wM9 S9z34V/apWMKZg0+Tr276B27335iw8faBncqLDbQW3caeK4E0UBiW0CWpBA838VE5JuU /y2P11a3D6k1XfgPjHcm8mBxAvp9cJlfrPbCSkyxeroQqiLCZbdMynaD0ovx0IMmRK6b 0R07308Wrvunt1oFair9Evl8ZWdfsVpkOxoiMIdE8H6sR++sSzlglVexm+iTfJaM0L4H nt+agAOtXhvNtot3aThJAfxqnQBmov56vCYVTpAbZby+T8KPfc/zANOMZ8SG16mVhuj5 gM7Q== X-Gm-Message-State: ALoCoQlvuAsNagF28YOatyEOlHHpYPg6fkq8RFgF5MJqaBsvpJQG/5jBWEq2sq4OHMqQwrbjo2K0 X-Received: by 10.112.150.229 with SMTP id ul5mr6004443lbb.2.1445193047360; Sun, 18 Oct 2015 11:30:47 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.169.198 with SMTP id s189ls432725lfe.87.gmail; Sun, 18 Oct 2015 11:30:47 -0700 (PDT) X-Received: by 10.112.163.131 with SMTP id yi3mr12591920lbb.36.1445193047186; Sun, 18 Oct 2015 11:30:47 -0700 (PDT) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id s71si20124268lfs.95.2015.10.18.11.30.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Oct 2015 11:30:47 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by lbbes7 with SMTP id es7so38278529lbb.2 for ; Sun, 18 Oct 2015 11:30:47 -0700 (PDT) X-Received: by 10.112.64.72 with SMTP id m8mr12327260lbs.41.1445193047079; Sun, 18 Oct 2015 11:30:47 -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 w3csp1079179lbq; Sun, 18 Oct 2015 11:30:44 -0700 (PDT) X-Received: by 10.68.242.41 with SMTP id wn9mr30076541pbc.79.1445193044296; Sun, 18 Oct 2015 11:30:44 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id mr9si23484387pbb.183.2015.10.18.11.30.43; Sun, 18 Oct 2015 11:30:44 -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 S1752914AbbJRSam (ORCPT + 28 others); Sun, 18 Oct 2015 14:30:42 -0400 Received: from mail-pa0-f48.google.com ([209.85.220.48]:35581 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752372AbbJRSZ7 (ORCPT ); Sun, 18 Oct 2015 14:25:59 -0400 Received: by pasz6 with SMTP id z6so6766318pas.2 for ; Sun, 18 Oct 2015 11:25:58 -0700 (PDT) X-Received: by 10.66.132.37 with SMTP id or5mr29289111pab.5.1445192758681; Sun, 18 Oct 2015 11:25:58 -0700 (PDT) Received: from t430.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [184.64.168.246]) by smtp.gmail.com with ESMTPSA id hq1sm20402076pbb.43.2015.10.18.11.25.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 18 Oct 2015 11:25:58 -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, nicolas.pitre@linaro.org 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, mathieu.poirier@linaro.org Subject: [PATCH V2 15/30] coresight: making coresight_build_paths() public Date: Sun, 18 Oct 2015 12:24:32 -0600 Message-Id: <1445192687-24112-16-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1445192687-24112-1-git-send-email-mathieu.poirier@linaro.org> References: <1445192687-24112-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.217.171 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 subsystem. 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 d318a338a517..083080d435af 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;