From patchwork Mon Dec 15 21:00:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ola Liljedahl X-Patchwork-Id: 42292 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 21C8B2456A for ; Mon, 15 Dec 2014 21:00:44 +0000 (UTC) Received: by mail-lb0-f200.google.com with SMTP id f15sf7889435lbj.11 for ; Mon, 15 Dec 2014 13:00:43 -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=OGKwkcMlk93fiQalxRAzv+1W4bwiPthNBS8rsvzyS+x5/zBPA1jfLFxhsdhVt3j1U5 /XGuZU3IBYVXFn29WFXjoXxKFlNEOldzkJsHWvm37g4467LmD41K8qeYblIHmevIaeUk gcFqrFPUd0O9ur8V6hRcjTbX/2N7X4VKFaj06F7YuloPfjf/chbM5JnVhC5fetZyOg2n 4R05KeCdaEW5mGxLc6AVxpftCEB6kXp5ndc7CXSl0Tnc9APrYrKKVY5lUdN1AfxCD5oe b0yjhE7DEokRfqs+/EiXeZIGOFhw/fQpG8uzro2G3kD+jDS7OPSmXX92UNrJuAE7wjVf NRFw== X-Gm-Message-State: ALoCoQloH8VWt3DvXxd6xNY1cMZULmbIk73DyVz6x9VcxZ2th80fVIIZyVzkPo6FkQtfCOA0uSJf X-Received: by 10.180.19.42 with SMTP id b10mr3828812wie.0.1418677243120; Mon, 15 Dec 2014 13:00:43 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.23.166 with SMTP id n6ls380714laf.65.gmail; Mon, 15 Dec 2014 13:00:42 -0800 (PST) X-Received: by 10.152.29.6 with SMTP id f6mr11941488lah.32.1418677242792; Mon, 15 Dec 2014 13:00:42 -0800 (PST) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com. [209.85.215.41]) by mx.google.com with ESMTPS id v7si11537020lag.130.2014.12.15.13.00.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Dec 2014 13:00:42 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) client-ip=209.85.215.41; Received: by mail-la0-f41.google.com with SMTP id hv19so10030063lab.14 for ; Mon, 15 Dec 2014 13:00:42 -0800 (PST) X-Received: by 10.152.43.103 with SMTP id v7mr32434451lal.29.1418677242699; Mon, 15 Dec 2014 13:00:42 -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 ru5csp839137lbb; Mon, 15 Dec 2014 13:00:41 -0800 (PST) X-Received: by 10.140.28.202 with SMTP id 68mr54947376qgz.63.1418677241170; Mon, 15 Dec 2014 13:00:41 -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 f9si11919373qag.126.2014.12.15.13.00.40 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 15 Dec 2014 13:00:41 -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 1Y0ckw-0000LN-EV; Mon, 15 Dec 2014 21:00:38 +0000 Received: from mail-la0-f50.google.com ([209.85.215.50]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Y0ckf-0000JJ-6j for lng-odp@lists.linaro.org; Mon, 15 Dec 2014 21:00:21 +0000 Received: by mail-la0-f50.google.com with SMTP id pn19so10333127lab.9 for ; Mon, 15 Dec 2014 13:00:15 -0800 (PST) X-Received: by 10.112.142.201 with SMTP id ry9mr9171878lbb.4.1418677215630; Mon, 15 Dec 2014 13:00:15 -0800 (PST) Received: from macmini.lan (84-217-193-77.tn.glocalnet.net. [84.217.193.77]) by mx.google.com with ESMTPSA id zc5sm2915610lbb.49.2014.12.15.13.00.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 15 Dec 2014 13:00:14 -0800 (PST) From: Ola Liljedahl To: lng-odp@lists.linaro.org Date: Mon, 15 Dec 2014 22:00:06 +0100 Message-Id: <1418677206-23017-3-git-send-email-ola.liljedahl@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1418677206-23017-1-git-send-email-ola.liljedahl@linaro.org> References: <1418677206-23017-1-git-send-email-ola.liljedahl@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH 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.41 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;