From patchwork Tue Dec 16 16:40:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ola Liljedahl X-Patchwork-Id: 42344 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f71.google.com (mail-ee0-f71.google.com [74.125.83.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 349A52456A for ; Tue, 16 Dec 2014 16:41:21 +0000 (UTC) Received: by mail-ee0-f71.google.com with SMTP id c13sf9186950eek.10 for ; Tue, 16 Dec 2014 08:41:20 -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:in-reply-to :references: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=c2LA2c7Mnh9d7zcyTiPET3bYoyavCwxDU7rygk2T+0o=; b=PU7UF8W3aqQ19zOHmpUbif+FnKIjUmxq6azYzvYpf0cVmAVmvuKcEfcic4VpFR+loQ w0dWX1R3kbcLxcdTJkNu+kiJchGzSc5taRMl8K0SUumfooOx8qGtQSs0ZEnVU7LHoLSD YR5WI5LR0wKE+GKBldyO3rYMvw8cNFV34qKxrdmHRTDztR/GpKF0HsPoucLK+CrwQCPH 41UMN26vIGaFO3Yd7ImBusuiKiG8v0dlX7qp7Gg8eBXuwXVLAssRZd0raONxtiDkv69q F2ks/pjLhRCQ6BrisINQNpcdre1Sug9JbId5vcqyimI+SHct70vSFOrcWtl4raZGHaLe w58g== X-Gm-Message-State: ALoCoQnPsstOYYdchP5kr/pGISz7I9n35h/QBihEGWW4OH5F23EB/CmUzKRhgloxa3ZIa2WfjEod X-Received: by 10.112.154.232 with SMTP id vr8mr513080lbb.10.1418748080342; Tue, 16 Dec 2014 08:41:20 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.42.133 with SMTP id o5ls308685lal.78.gmail; Tue, 16 Dec 2014 08:41:20 -0800 (PST) X-Received: by 10.152.5.132 with SMTP id s4mr36598375las.39.1418748080054; Tue, 16 Dec 2014 08:41:20 -0800 (PST) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com. [209.85.215.45]) by mx.google.com with ESMTPS id ll1si1317472lac.41.2014.12.16.08.41.19 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 16 Dec 2014 08:41:19 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by mail-la0-f45.google.com with SMTP id gq15so11745841lab.18 for ; Tue, 16 Dec 2014 08:41:19 -0800 (PST) X-Received: by 10.112.98.99 with SMTP id eh3mr1085073lbb.32.1418748079644; Tue, 16 Dec 2014 08:41:19 -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 ru5csp1093341lbb; Tue, 16 Dec 2014 08:41:18 -0800 (PST) X-Received: by 10.224.42.202 with SMTP id t10mr60554993qae.21.1418748078167; Tue, 16 Dec 2014 08:41:18 -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 d1si1444202qaa.28.2014.12.16.08.41.17 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 16 Dec 2014 08:41:18 -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 1Y0vBT-0008NT-Hx; Tue, 16 Dec 2014 16:41:15 +0000 Received: from mail-la0-f54.google.com ([209.85.215.54]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Y0vBB-0008KE-LP for lng-odp@lists.linaro.org; Tue, 16 Dec 2014 16:40:57 +0000 Received: by mail-la0-f54.google.com with SMTP id pv20so11541381lab.27 for ; Tue, 16 Dec 2014 08:40:51 -0800 (PST) X-Received: by 10.112.12.65 with SMTP id w1mr36486378lbb.68.1418748051847; Tue, 16 Dec 2014 08:40:51 -0800 (PST) Received: from macmini.lan (78-82-118-111.tn.glocalnet.net. [78.82.118.111]) by mx.google.com with ESMTPSA id z6sm318064lae.2.2014.12.16.08.40.50 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 16 Dec 2014 08:40:51 -0800 (PST) From: Ola Liljedahl To: lng-odp@lists.linaro.org Date: Tue, 16 Dec 2014 17:40:48 +0100 Message-Id: <1418748048-15710-3-git-send-email-ola.liljedahl@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1418748048-15710-1-git-send-email-ola.liljedahl@linaro.org> References: <1418748048-15710-1-git-send-email-ola.liljedahl@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv2 2/2] linux-generic:odp_system_info.c:sysconf_cpu_count() report online cores 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: ola.liljedahl@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.215.45 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 Signed-off-by: Ola Liljedahl --- (This document/code contribution attached is provided under the terms of agreement LES-LTM-21309) platform/linux-generic/odp_system_info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/linux-generic/odp_system_info.c b/platform/linux-generic/odp_system_info.c index aab3f6f..fddd19a 100644 --- a/platform/linux-generic/odp_system_info.c +++ b/platform/linux-generic/odp_system_info.c @@ -51,7 +51,7 @@ static int sysconf_cpu_count(void) { long ret; - ret = sysconf(_SC_NPROCESSORS_CONF); + ret = sysconf(_SC_NPROCESSORS_ONLN); if (ret < 0) return 0;