From patchwork Tue Apr 12 07:56:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 65591 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp1781002qge; Tue, 12 Apr 2016 01:05:07 -0700 (PDT) X-Received: by 10.50.124.36 with SMTP id mf4mr2476502igb.92.1460448307265; Tue, 12 Apr 2016 01:05:07 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id kp1si951513igc.103.2016.04.12.01.05.06; Tue, 12 Apr 2016 01:05:07 -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; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id AA41566824; Tue, 12 Apr 2016 08:05:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 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 [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id EFE736680D; Tue, 12 Apr 2016 08:04:36 +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 6AAFE622BB; Tue, 12 Apr 2016 08:04:33 +0000 (UTC) Received: from mail-lf0-f47.google.com (mail-lf0-f47.google.com [209.85.215.47]) by lists.linaro.org (Postfix) with ESMTPS id 0131E622BB for ; Tue, 12 Apr 2016 08:04:23 +0000 (UTC) Received: by mail-lf0-f47.google.com with SMTP id c126so13918217lfb.2 for ; Tue, 12 Apr 2016 01:04:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=qMV2RxFO1NbN+J6K/D9Jh9ZYhw2gk1taZgFsm68QHC8=; b=lv2Mv+UUTDwRegDAX5vsmicV6pmXYHaXBN6IrOyq4r4JqC2bq7JyHqmPaEPvUI2A63 jv24Qv5AU7ylSvjNN+ZOellzeZQ2iIbH9DTN8rzyvlCWCb87d2WvV6YagtXC/zDnBKgA cIXfSWujb6bu1DLT7icnEyJYgOr8+HxWpvdPAv5x7a2iXfM45S/8H1Sl88FB0qxLvnWD f0g6nJ9gQ0xKJWFPZvONzS9f5iGHjFS+Uml8Ucp0lhg5qIBLqFpStIY992dMqD5NMX3A 61Ah3QDLiDdqrK/8b2ILiGOBsDPi2mYbyRhzrCHSLcMRwgHJ5Wm8rjSOT+IRbKPo7OGv H+/g== X-Gm-Message-State: AOPr4FWU9UB7tIFnN/wwUZNN9igRX96F9MUigauyz18+pQNgrk/PZOtNTTGq4YICqaLShUycJBo= X-Received: by 10.112.72.135 with SMTP id d7mr808826lbv.126.1460448261799; Tue, 12 Apr 2016 01:04:21 -0700 (PDT) Received: from localhost (c-c82171d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.113.33.200]) by smtp.gmail.com with ESMTPSA id 87sm5233145lfr.48.2016.04.12.01.04.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Apr 2016 01:04:21 -0700 (PDT) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Tue, 12 Apr 2016 09:56:39 +0200 Message-Id: <1460447801-8686-2-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1460447801-8686-1-git-send-email-anders.roxell@linaro.org> References: <1460144936-10277-1-git-send-email-anders.roxell@linaro.org> <1460447801-8686-1-git-send-email-anders.roxell@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv3 1/3] linux-generic: odp_schedule: drop prefix odp on internal functions X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" 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" Internal functions shouldn't have use the prefix odp only the public API. Signed-off-by: Anders Roxell --- platform/linux-generic/include/odp_schedule_internal.h | 2 +- platform/linux-generic/odp_schedule.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/platform/linux-generic/include/odp_schedule_internal.h b/platform/linux-generic/include/odp_schedule_internal.h index fe8ff7b..8a8c932 100644 --- a/platform/linux-generic/include/odp_schedule_internal.h +++ b/platform/linux-generic/include/odp_schedule_internal.h @@ -25,7 +25,7 @@ void schedule_queue_destroy(queue_entry_t *qe); int schedule_queue(const queue_entry_t *qe); void schedule_pktio_start(odp_pktio_t pktio, int num_in_queue, int in_queue_idx[]); -void odp_schedule_release_context(void); +void _schedule_release_context(void); #ifdef __cplusplus } diff --git a/platform/linux-generic/odp_schedule.c b/platform/linux-generic/odp_schedule.c index 2e24079..bcb8b92 100644 --- a/platform/linux-generic/odp_schedule.c +++ b/platform/linux-generic/odp_schedule.c @@ -301,7 +301,7 @@ int odp_schedule_term_local(void) return -1; } - odp_schedule_release_context(); + _schedule_release_context(); sched_local_init(); return 0; @@ -452,7 +452,7 @@ void odp_schedule_release_ordered(void) } } -void odp_schedule_release_context(void) +void _schedule_release_context(void) { if (sched_local.origin_qe) { release_order(sched_local.origin_qe, sched_local.order, @@ -501,7 +501,7 @@ static int schedule(odp_queue_t *out_queue, odp_event_t out_ev[], return ret; } - odp_schedule_release_context(); + _schedule_release_context(); if (odp_unlikely(sched_local.pause)) return 0;