From patchwork Mon Aug 8 08:40:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 73408 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp3102373qga; Mon, 8 Aug 2016 01:40:45 -0700 (PDT) X-Received: by 10.55.170.208 with SMTP id t199mr25481684qke.151.1470645645675; Mon, 08 Aug 2016 01:40:45 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id r128si10076371qkd.291.2016.08.08.01.40.45; Mon, 08 Aug 2016 01:40:45 -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 DC8CB60F11; Mon, 8 Aug 2016 08:40:44 +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 669B260F0D; Mon, 8 Aug 2016 08:40:42 +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 61C3260F0E; Mon, 8 Aug 2016 08:40:40 +0000 (UTC) Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by lists.linaro.org (Postfix) with ESMTPS id 1558560EFD for ; Mon, 8 Aug 2016 08:40:39 +0000 (UTC) Received: by mail-wm0-f47.google.com with SMTP id o80so122887212wme.1 for ; Mon, 08 Aug 2016 01:40:39 -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; bh=wamFv920apXutj68NlzdjYyhGzhlwP+shUaJTSHIZnY=; b=Pr/xAZeeX6o6DpT+pJqUXQvdLvBZchF3JwgNSLrzW7V9BZAwm7bS8+6Vbbr6FGcdsU nDH8qIO9yFE5JDMSGbc3JNUjUbcW9rV12hZNvpsZFOUc/5lt9CvhxNJ2719IcuZBXRzt cgvFuOelw/i4Mq9XCUO7WWTfRgqUOKQjyDygCgEzzJcWiNHkv8js0HcEvF4C2t6zuTTe 9FB2LT9q0yOZRHUAOlz5ORj3B88gqR/Xm9VC57b03DCD/drkiLB14epwva8p/M5xbEV1 LngU7+iSyF0aC7H6G7AeGIvkz/uus16ywUCChHpAFka5g4JbWw34FywsiXXfA88xzicm LiYw== X-Gm-Message-State: AEkoouuq0wWs0zFTb2rym2+DyquWUGlBKtFRXzX9bOiJ7E2IcFhK839TCkJbu2DWF8OaMLxubBE= X-Received: by 10.25.147.197 with SMTP id v188mr29995386lfd.9.1470645638041; Mon, 08 Aug 2016 01:40:38 -0700 (PDT) Received: from maxim-Aspire-VN7-791.d-systems.local ([185.75.190.112]) by smtp.gmail.com with ESMTPSA id 88sm5408109lfr.23.2016.08.08.01.40.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 08 Aug 2016 01:40:37 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Mon, 8 Aug 2016 11:40:29 +0300 Message-Id: <1470645629-12411-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.7.1.250.gff4ea60 X-Topics: patch Subject: [lng-odp] [PATCH] linux-gen: do not init scheduler context on termination 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: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" We should not try to redifine current odp thread id on termination as well as set poll queues to invalid values, which has to be cleared later in schedule_term_global(). Signed-off-by: Maxim Uvarov --- platform/linux-generic/odp_schedule.c | 2 -- 1 file changed, 2 deletions(-) -- 2.7.1.250.gff4ea60 diff --git a/platform/linux-generic/odp_schedule.c b/platform/linux-generic/odp_schedule.c index 8765f48..8405423 100644 --- a/platform/linux-generic/odp_schedule.c +++ b/platform/linux-generic/odp_schedule.c @@ -328,8 +328,6 @@ static int schedule_term_local(void) } schedule_release_context(); - - sched_local_init(); return 0; }