From patchwork Mon Jul 18 17:16:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Brooks X-Patchwork-Id: 72244 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp221042qga; Mon, 18 Jul 2016 10:18:42 -0700 (PDT) X-Received: by 10.55.152.135 with SMTP id a129mr44245720qke.199.1468862321963; Mon, 18 Jul 2016 10:18:41 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id s28si12548437qki.21.2016.07.18.10.18.41; Mon, 18 Jul 2016 10:18:41 -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 85FB368803; Mon, 18 Jul 2016 17:18:41 +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_H2, 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 05F1A616ED; Mon, 18 Jul 2016 17:17:54 +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 BBF7961737; Mon, 18 Jul 2016 17:17:48 +0000 (UTC) Received: from mail-pf0-f181.google.com (mail-pf0-f181.google.com [209.85.192.181]) by lists.linaro.org (Postfix) with ESMTPS id 6B702687EF for ; Mon, 18 Jul 2016 17:16:56 +0000 (UTC) Received: by mail-pf0-f181.google.com with SMTP id p64so33724327pfb.1 for ; Mon, 18 Jul 2016 10:16:56 -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=/OZY6QiqZs5aWivMJ6XJGJJPg+h50LE+pv9mqCYDf8k=; b=evMEL0WVd0ISsxC8W8ZG+L9H23KYwNJ3RPx/D/dE+tkCFAs2dAIEFnoga9OxwgeiGK NOCyZcXTNuGCG/tY6EhoNFIgSWbQVIz6DJbo2FYMkpO0bxDCOieKbTqQ0e+iYSOUcGxm mOUKj1dKzGjIR3GDd/eHBcZarMKtbzhp1ZYnKWxxJjFcO62besIHNz+WdWKdwy9yJ8h5 rRkj5sC36IeJt77zqsTZvzV3fhYx7i4KpHkNvuLpB4S3J1nOHYMLBXoOQDhha76nX3db YHIJvDsz7XtTYEFaO37eKkQfy4RKq37s3woNJ96f852x/IZdIc2patloRO8EbSwSxxjy wyVA== X-Gm-Message-State: ALyK8tKUYqEkYY0ibtR0zCn09dmqK6FxW94yfl9ejvUQ5U/dVaYpGT3Q1ABcsr1MavjHVJBUTu0= X-Received: by 10.66.62.168 with SMTP id z8mr57216476par.152.1468862215745; Mon, 18 Jul 2016 10:16:55 -0700 (PDT) Received: from localhost.localdomain ([192.241.201.113]) by smtp.gmail.com with ESMTPSA id x68sm6354660pfb.88.2016.07.18.10.16.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Jul 2016 10:16:54 -0700 (PDT) From: Brian Brooks To: lng-odp@lists.linaro.org Date: Mon, 18 Jul 2016 13:16:46 -0400 Message-Id: <1468862206-25102-2-git-send-email-brian.brooks@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1468862206-25102-1-git-send-email-brian.brooks@linaro.org> References: <1468862206-25102-1-git-send-email-brian.brooks@linaro.org> X-Topics: timers patch Subject: [lng-odp] [PATCH 2/2] timer: add missing atomic decrement 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" Signed-off-by: Brian Brooks --- platform/linux-generic/odp_timer.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.9.0 diff --git a/platform/linux-generic/odp_timer.c b/platform/linux-generic/odp_timer.c index becea9d..f47c291 100644 --- a/platform/linux-generic/odp_timer.c +++ b/platform/linux-generic/odp_timer.c @@ -316,6 +316,8 @@ static void odp_timer_pool_del(odp_timer_pool *tp) int rc = odp_shm_free(tp->shm); if (rc != 0) ODP_ABORT("Failed to free shared memory (%d)\n", rc); + + odp_atomic_sub_u32(&num_timer_pools, 1); } static inline odp_timer_t timer_alloc(odp_timer_pool *tp,