From patchwork Wed Jan 7 16:23:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ola Liljedahl X-Patchwork-Id: 42838 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f200.google.com (mail-we0-f200.google.com [74.125.82.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 327742055F for ; Wed, 7 Jan 2015 16:24:46 +0000 (UTC) Received: by mail-we0-f200.google.com with SMTP id u56sf845501wes.7 for ; Wed, 07 Jan 2015 08:24:45 -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=L0BNfg5j6vcB6hBfjOLwileFRwSIBgjDa7qnUAk5JRs=; b=Vxu4MhpvzjjoaKPflU/GS46Y/KdoNOeOCSiSh3b+z5got7khQTSGakbrl3MKr7Lv4h Cjop4wNqW+gl74QvSPj3SZRggYZ4TwhAHdVwIjPQis+PbPGJoYK7Cgo/Qg0+31lh2hxR jlpR4641Aj16Y3hf64YqOUuT1+Ytp/1e35kpjehfrrGezkHRjimuVnWNXDSrip7tNBD+ EyoRaY2cMQ5CgslaHwa+MthEcDvXtsBfP5VFxVIr9QZiKXctj7WMfBLXHqvJBl2qemxw mrDqnQ8Zwr+YgJb+kKmYkJIdBMUU7mO8xsfShIZsO3UkEyu5xlxL7ZAdOOwh0q2DfWq8 fT8w== X-Gm-Message-State: ALoCoQlsR8w+ZPOKxuHIK8E5xTbBVS1k2AInSvS9s45n8LBjjcHHPU+qltt6ifIi5Y0vAGezh8zt X-Received: by 10.180.89.140 with SMTP id bo12mr631252wib.6.1420647885503; Wed, 07 Jan 2015 08:24:45 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.29.2 with SMTP id f2ls190649lah.60.gmail; Wed, 07 Jan 2015 08:24:45 -0800 (PST) X-Received: by 10.112.225.166 with SMTP id rl6mr5949363lbc.58.1420647885273; Wed, 07 Jan 2015 08:24:45 -0800 (PST) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com. [209.85.215.46]) by mx.google.com with ESMTPS id li10si3696200lab.112.2015.01.07.08.24.44 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 07 Jan 2015 08:24:44 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) client-ip=209.85.215.46; Received: by mail-la0-f46.google.com with SMTP id q1so4448032lam.5 for ; Wed, 07 Jan 2015 08:24:44 -0800 (PST) X-Received: by 10.152.23.38 with SMTP id j6mr6010734laf.81.1420647884852; Wed, 07 Jan 2015 08:24:44 -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.9.200 with SMTP id c8csp1533626lbb; Wed, 7 Jan 2015 08:24:43 -0800 (PST) X-Received: by 10.224.131.4 with SMTP id v4mr5823059qas.99.1420647876182; Wed, 07 Jan 2015 08:24:36 -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 gq3si2491398qcb.39.2015.01.07.08.24.35 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 07 Jan 2015 08:24:36 -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 1Y8tPM-0002WV-W7; Wed, 07 Jan 2015 16:24:33 +0000 Received: from mail-lb0-f174.google.com ([209.85.217.174]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Y8tPF-0002W4-D1 for lng-odp@lists.linaro.org; Wed, 07 Jan 2015 16:24:25 +0000 Received: by mail-lb0-f174.google.com with SMTP id 10so1370404lbg.33 for ; Wed, 07 Jan 2015 08:24:19 -0800 (PST) X-Received: by 10.112.38.4 with SMTP id c4mr6117250lbk.46.1420647859871; Wed, 07 Jan 2015 08:24:19 -0800 (PST) Received: from macmini.lan (78-82-118-111.tn.glocalnet.net. [78.82.118.111]) by mx.google.com with ESMTPSA id m9sm540167laa.28.2015.01.07.08.24.18 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Jan 2015 08:24:19 -0800 (PST) From: Ola Liljedahl To: lng-odp@lists.linaro.org Date: Wed, 7 Jan 2015 17:23:59 +0100 Message-Id: <1420647839-23553-3-git-send-email-ola.liljedahl@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1420647839-23553-1-git-send-email-ola.liljedahl@linaro.org> References: <1420647839-23553-1-git-send-email-ola.liljedahl@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv3 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.46 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 As ODP cannot bring configured but offline cores online only report number of cores already online. 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;