From patchwork Sat Jul 18 20:03:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 51260 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 ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 572A922A28 for ; Sat, 18 Jul 2015 20:17:24 +0000 (UTC) Received: by wilm20 with SMTP id m20sf10980402wil.2 for ; Sat, 18 Jul 2015 13:17:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:in-reply-to:references:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :mime-version:content-type:content-transfer-encoding:errors-to :sender:x-original-sender:x-original-authentication-results :mailing-list; bh=7UFpAijBsOB7keiBEs0zCWs96ODAbNjVteewnuKVt9Q=; b=YDHlYLMW/2KjOU5fnEh6cRNDjXXmxHrXTI9nmUIyhyUDsN7t4q1o7wVnHU5L4XQpwc Ytdi83k3um14V9SmXuec0ltXzAw5D6G9cM93nIpyEGD17pT2Q0FzcKfHlmaq4EDJ7zwi 2TMuJ8WNmFZ2c+s2yz8DT7FfA5Z0tnNfKsHS/cWs3o7IZFVh7Y2Xvq3ftMl9TsHYphta u1Od7+LYL17E3DZMmEoE8ZhO7Mp8V3yxOOelhuSBM95Xax/s8S2fWpV5QuO+MImWErot riUtGatRW6+yXftH50kIyQoX18b4Pg9UACqqn8BYolgnyCoibmxm0/za+2RDL7iQlWTi kV4w== X-Gm-Message-State: ALoCoQmMeNxtJK0dr8ZkymjjiFN+WpI7BOWBCuZfhEOHbQZBXPf0bgxipnNnwiUkKGGw5DgkXAeF X-Received: by 10.152.6.103 with SMTP id z7mr10870375laz.8.1437250643328; Sat, 18 Jul 2015 13:17:23 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.206.36 with SMTP id ll4ls595423lac.36.gmail; Sat, 18 Jul 2015 13:17:23 -0700 (PDT) X-Received: by 10.112.220.7 with SMTP id ps7mr20148825lbc.72.1437250643050; Sat, 18 Jul 2015 13:17:23 -0700 (PDT) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id xg7si13433846lbb.48.2015.07.18.13.17.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Jul 2015 13:17:23 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by lbbpo10 with SMTP id po10so76598162lbb.3 for ; Sat, 18 Jul 2015 13:17:22 -0700 (PDT) X-Received: by 10.152.207.76 with SMTP id lu12mr7995272lac.29.1437250642907; Sat, 18 Jul 2015 13:17:22 -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.108.230 with SMTP id hn6csp537500lbb; Sat, 18 Jul 2015 13:17:22 -0700 (PDT) X-Received: by 10.140.33.21 with SMTP id i21mr34941034qgi.4.1437250641749; Sat, 18 Jul 2015 13:17:21 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id n77si18640771qkh.123.2015.07.18.13.17.21; Sat, 18 Jul 2015 13:17:21 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id E68B061847; Sat, 18 Jul 2015 20:17:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 053E261D34; Sat, 18 Jul 2015 20:05:57 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 4853961CF9; Sat, 18 Jul 2015 20:04:42 +0000 (UTC) Received: from mail-ob0-f177.google.com (mail-ob0-f177.google.com [209.85.214.177]) by lists.linaro.org (Postfix) with ESMTPS id 55D8961CA6 for ; Sat, 18 Jul 2015 20:04:11 +0000 (UTC) Received: by obnw1 with SMTP id w1so82845335obn.3 for ; Sat, 18 Jul 2015 13:04:11 -0700 (PDT) X-Received: by 10.202.217.68 with SMTP id q65mr16929516oig.17.1437249850936; Sat, 18 Jul 2015 13:04:10 -0700 (PDT) Received: from localhost.localdomain (cpe-24-28-70-239.austin.res.rr.com. [24.28.70.239]) by smtp.gmail.com with ESMTPSA id y5sm8537998oes.15.2015.07.18.13.04.10 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 18 Jul 2015 13:04:10 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Sat, 18 Jul 2015 15:03:46 -0500 Message-Id: <1437249827-578-12-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1437249827-578-1-git-send-email-bill.fischofer@linaro.org> References: <1437249827-578-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Cc: Barry Spinney Subject: [lng-odp] [RFC API-NEXT PATCH 11/12] linux-generic: init: initialize tm as part of odp init X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: bill.fischofer@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.176 as permitted sender) smtp.mail=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 Signed-off-by: Barry Spinney Signed-off-by: Mike Holmes Signed-off-by: Bill Fischofer --- platform/linux-generic/include/odp_internal.h | 2 ++ platform/linux-generic/odp_init.c | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/platform/linux-generic/include/odp_internal.h b/platform/linux-generic/include/odp_internal.h index 6f0050f..8a5d18c 100644 --- a/platform/linux-generic/include/odp_internal.h +++ b/platform/linux-generic/include/odp_internal.h @@ -76,6 +76,8 @@ int odp_schedule_term_local(void); int odp_timer_init_global(void); int odp_timer_disarm_all(void); +int odp_tm_init_global(void); + void _odp_flush_caches(void); #ifdef __cplusplus diff --git a/platform/linux-generic/odp_init.c b/platform/linux-generic/odp_init.c index 48d9b20..e6f1f18 100644 --- a/platform/linux-generic/odp_init.c +++ b/platform/linux-generic/odp_init.c @@ -71,6 +71,11 @@ int odp_init_global(const odp_init_t *params, return -1; } + if (odp_tm_init_global()) { + ODP_ERR("ODP traffic manager init failed.\n"); + return -1; + } + return 0; }