From patchwork Wed Dec 31 16:20:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 42657 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7823E26CB5 for ; Wed, 31 Dec 2014 16:21:07 +0000 (UTC) Received: by mail-la0-f69.google.com with SMTP id gd6sf9703920lab.8 for ; Wed, 31 Dec 2014 08:21:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id: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=zngjZsEz4uiFHtFahG/IBr0R54sD6jQehW99wu6wrBE=; b=KVLzG9PmFHOceh+nCqkJSsivuPagUMctkTnokMR/oEZFEdZ1yDJFAhAEwd4sq/yEKo KRhtB33Qr7qw41fihNnj0kYsaOwV57NALjgtbz04g/yFRT1dhN61Jclsq0FSBN/PeYoI yN/TqwVPJoXC2R/DYOxsSG63mYICC5V+ngOGM6lBSocYMvdg+UdcLdIinxd4/b/Pj2t6 UqAyVJbsTD/aXrb1k0PVl9dZWkcC9drB9ksdrAQ1GLS1t0iGdaEeT29aKN9mfvA18BS9 EYrrqsALRqx61Re3i/uSf+voKbPh3LJwy09OOlZqDV1swxOqAcR5I4n0Xkc5ocXkBGcx ZCzQ== X-Gm-Message-State: ALoCoQkpOIryPtc6nmQfz56G0uosacyusPaeGgEGsyvIAOmPCWUxlnkn5BeEIjr2kPGy3M+AjLFu X-Received: by 10.180.7.226 with SMTP id m2mr7164852wia.5.1420042866462; Wed, 31 Dec 2014 08:21:06 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.23.98 with SMTP id l2ls1314293laf.73.gmail; Wed, 31 Dec 2014 08:21:06 -0800 (PST) X-Received: by 10.152.23.98 with SMTP id l2mr66764735laf.46.1420042866165; Wed, 31 Dec 2014 08:21:06 -0800 (PST) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id qh5si45710005lbb.103.2014.12.31.08.21.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 31 Dec 2014 08:21:06 -0800 (PST) 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 mail-lb0-f176.google.com with SMTP id p9so13883610lbv.35 for ; Wed, 31 Dec 2014 08:21:06 -0800 (PST) X-Received: by 10.152.234.35 with SMTP id ub3mr67769681lac.70.1420042866033; Wed, 31 Dec 2014 08:21:06 -0800 (PST) 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.142.69 with SMTP id ru5csp3409585lbb; Wed, 31 Dec 2014 08:21:05 -0800 (PST) X-Received: by 10.140.18.131 with SMTP id 3mr6804861qgf.50.1420042864415; Wed, 31 Dec 2014 08:21:04 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id k92si46858783qgk.87.2014.12.31.08.21.03 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 31 Dec 2014 08:21:04 -0800 (PST) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Y6M17-0000Lk-MQ; Wed, 31 Dec 2014 16:21:01 +0000 Received: from mail-qc0-f176.google.com ([209.85.216.176]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Y6M11-0000Ld-4K for lng-odp@lists.linaro.org; Wed, 31 Dec 2014 16:20:55 +0000 Received: by mail-qc0-f176.google.com with SMTP id i17so11665439qcy.7 for ; Wed, 31 Dec 2014 08:20:50 -0800 (PST) X-Received: by 10.229.50.135 with SMTP id z7mr109968602qcf.21.1420042849921; Wed, 31 Dec 2014 08:20:49 -0800 (PST) Received: from localhost.localdomain ([98.221.136.245]) by mx.google.com with ESMTPSA id o59sm15898383qga.0.2014.12.31.08.20.49 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 31 Dec 2014 08:20:49 -0800 (PST) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Wed, 31 Dec 2014 11:20:41 -0500 Message-Id: <1420042841-5581-1-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 2.1.0 X-Topics: patch Subject: [lng-odp] [PATCH] api: odp_thread: documentation X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 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-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: mike.holmes@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 Improve the definition of thread and core ids Signed-off-by: Mike Holmes --- platform/linux-generic/include/api/odp_thread.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/linux-generic/include/api/odp_thread.h b/platform/linux-generic/include/api/odp_thread.h index 2b7177d..debcefd 100644 --- a/platform/linux-generic/include/api/odp_thread.h +++ b/platform/linux-generic/include/api/odp_thread.h @@ -24,6 +24,7 @@ extern "C" { /** * Get thread id + * Threads are numbered from 0 to n * * @return Thread id of the current thread */ @@ -32,6 +33,7 @@ int odp_thread_id(void); /** * Get core id + * Cores are numbered to match their native host scheme * * @return Core id where the thread is running currently */