From patchwork Wed Nov 11 01:42:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 56361 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp1097894lbb; Tue, 10 Nov 2015 17:43:32 -0800 (PST) X-Received: by 10.129.13.215 with SMTP id 206mr7102042ywn.280.1447206212751; Tue, 10 Nov 2015 17:43:32 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id l131si4045453ywb.233.2015.11.10.17.43.32; Tue, 10 Nov 2015 17:43:32 -0800 (PST) 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; dkim=neutral (body hash did not verify) header.i=@linaro_org.20150623.gappssmtp.com Received: by lists.linaro.org (Postfix, from userid 109) id 5156861CB9; Wed, 11 Nov 2015 01:43:32 +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.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID, 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 1BBA761B3F; Wed, 11 Nov 2015 01:43:04 +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 98CCD61A4E; Wed, 11 Nov 2015 01:43:00 +0000 (UTC) Received: from mail-pa0-f52.google.com (mail-pa0-f52.google.com [209.85.220.52]) by lists.linaro.org (Postfix) with ESMTPS id CD1E261AF3 for ; Wed, 11 Nov 2015 01:42:59 +0000 (UTC) Received: by pacdm15 with SMTP id dm15so14713107pac.3 for ; Tue, 10 Nov 2015 17:42:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro_org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=RDKws1OE76qqajzDUxUjOm+S9bxKRuyNfUYkp6b1Gr0=; b=CNd8qim2pqLBaPBkEmP4zEN9iYr0K2UtjEY2nbwU+7/gY7WmjJDA5PJ4jL3FDtgaHd 0lybMJn1vltMdEYky5oc+BLCr8X1DYgC/JYJtC2fkbG2Dghrl8vZ83Pts/emo3DahKEA F6y9KxH+FZm0ODD2XAcQIEbUij/l/uRsbZnV+nq5W1lH2cm4/f8kCPk+jpRZyKH+HCq7 slTEUdrx/pUwMX2hYU3N8+NxGScTJrePT/y04nt/sErP56sVX/a3yPlrm6Leo29bDHys XfIOK7fgVmJV+M4tGPUjyDFzQQup6ORKr1nCDEd6llFaeN/qmmEd9IzWS/3GBW+MUmkN TF2g== 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=RDKws1OE76qqajzDUxUjOm+S9bxKRuyNfUYkp6b1Gr0=; b=YpJ9ZLT4xSbIlLjTkiYwB+UK8MNOueBT+C3wKNTJAD4EUIIxa/VvvXlD+rLWD4I0qA rMjGm/B+teiwttDgO0QK0Tm3wLYrTbSxyiNCYZJ8CIBGpnSMgqnP7EAamDHqOUvV1XlU SPL9NTXHout2uBp2/AKWfCADP1W8+kgCa609mKUAmeZGJa3BhjUfOxsaUdgNrmpL1Wbw XWf8iOe0bsNtbXofr5+Fby7qVUH0Joqf5jabD+mTGaOnywoWkEbOto6YX/wdj0cL22Ak QuZYtSAoIpD1HyNqxNQc8xd9WwK+LbOaCGwOUKNMgcZFi+l+662jSWxp2wkZlQ+91FuI xbhA== X-Gm-Message-State: ALoCoQlTL+34IDykBfhj42n/V7V0lM5Rw7W1ExZC3r/u2SvPwVieKkDh/LyF3bnHEEriK5Dqdlpt X-Received: by 10.66.236.201 with SMTP id uw9mr10488617pac.76.1447206179155; Tue, 10 Nov 2015 17:42:59 -0800 (PST) Received: from Ubuntu15.localdomain ([70.35.39.246]) by smtp.gmail.com with ESMTPSA id vg7sm6516669pbc.2.2015.11.10.17.42.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 10 Nov 2015 17:42:58 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Tue, 10 Nov 2015 17:42:52 -0800 Message-Id: <1447206173-31970-2-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1447206173-31970-1-git-send-email-bill.fischofer@linaro.org> References: <1447206173-31970-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCH 2/3] linux-generic: config: add implementation of odp_config_threads() 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" Signed-off-by: Bill Fischofer --- platform/linux-generic/include/odp/config.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/platform/linux-generic/include/odp/config.h b/platform/linux-generic/include/odp/config.h index ee23df3..58c55c0 100644 --- a/platform/linux-generic/include/odp/config.h +++ b/platform/linux-generic/include/odp/config.h @@ -23,6 +23,15 @@ extern "C" { */ /** + * Maximum number of threads + */ +#define ODP_CONFIG_THREADS 128 +static inline int odp_config_threads(void) +{ + return ODP_CONFIG_THREADS; +} + +/** * Maximum number of pools */ #define ODP_CONFIG_POOLS 16