Message ID | 1420639600-15980-3-git-send-email-ola.liljedahl@linaro.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <patchwork-forward+bncBDK5FOHVXUMBB6X2WSSQKGQE7WGAOLY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C874820558 for <linaro@patches.linaro.org>; Wed, 7 Jan 2015 14:06:51 +0000 (UTC) Received: by mail-lb0-f197.google.com with SMTP id w7sf721073lbi.4 for <linaro@patches.linaro.org>; Wed, 07 Jan 2015 06:06:50 -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=nMTPJQinC5b4+2RENXZr1qs6H9P0Imi5Rd3HtJSAqUCpjs2v+RzJVNagRj5+AFJO2j LyzgxhwR+ddf/ewvi/wvxFncb1kkbDpHpFsFh3v5V91SUUjB62/dgEAti63+jEkm7m/u NwTuIutUPT36BB/tQV05Wa9bwngGebJt5aJ89x21xfXCBrP36Bb8TDAHDpK7qYvtLbRy I8taKVYqbbhric+i9iZZFcqa0b+qXusbOjOB1hpXHFn61Fvb0EA9fsqy2YvTInKSD4eF cTa+RTKAR3D1HYlP96MFDfdp3IGpztsvTPVWO15LkUaoKjHqRuICdq2tqAsLGJTNd8uJ eZPg== X-Gm-Message-State: ALoCoQnLY8Wz9cV4KfHKOg9y2mxYTSU1BnxYYG/xvNwNG4SeUdG0HsknQL0yajDHZ1xb9fdn0FGL X-Received: by 10.194.77.1 with SMTP id o1mr463499wjw.1.1420639610725; Wed, 07 Jan 2015 06:06:50 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.1.66 with SMTP id 2ls182757lak.10.gmail; Wed, 07 Jan 2015 06:06:50 -0800 (PST) X-Received: by 10.112.72.197 with SMTP id f5mr4756157lbv.21.1420639610535; Wed, 07 Jan 2015 06:06:50 -0800 (PST) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com. [209.85.215.47]) by mx.google.com with ESMTPS id t9si3029707lag.15.2015.01.07.06.06.50 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 07 Jan 2015 06:06:50 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by mail-la0-f47.google.com with SMTP id hz20so3596853lab.6 for <patchwork-forward@linaro.org>; Wed, 07 Jan 2015 06:06:50 -0800 (PST) X-Received: by 10.112.98.99 with SMTP id eh3mr4827434lbb.32.1420639610315; Wed, 07 Jan 2015 06:06:50 -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 c8csp1491610lbb; Wed, 7 Jan 2015 06:06:49 -0800 (PST) X-Received: by 10.236.36.79 with SMTP id v55mr2447285yha.26.1420639608489; Wed, 07 Jan 2015 06:06:48 -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 k70si1142256ykb.88.2015.01.07.06.06.47 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 07 Jan 2015 06:06:48 -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 <lng-odp-bounces@lists.linaro.org>) id 1Y8rG1-0004LS-Ll; Wed, 07 Jan 2015 14:06:45 +0000 Received: from mail-lb0-f170.google.com ([209.85.217.170]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from <ola.liljedahl@linaro.org>) id 1Y8rFs-0004J1-PM for lng-odp@lists.linaro.org; Wed, 07 Jan 2015 14:06:36 +0000 Received: by mail-lb0-f170.google.com with SMTP id 10so1133693lbg.15 for <lng-odp@lists.linaro.org>; Wed, 07 Jan 2015 06:06:31 -0800 (PST) X-Received: by 10.112.130.65 with SMTP id oc1mr4849681lbb.7.1420639591275; Wed, 07 Jan 2015 06:06:31 -0800 (PST) Received: from macmini.lan (78-82-118-111.tn.glocalnet.net. [78.82.118.111]) by mx.google.com with ESMTPSA id v4sm464121lav.25.2015.01.07.06.06.30 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Jan 2015 06:06:30 -0800 (PST) From: Ola Liljedahl <ola.liljedahl@linaro.org> To: lng-odp@lists.linaro.org Date: Wed, 7 Jan 2015 15:06:40 +0100 Message-Id: <1420639600-15980-3-git-send-email-ola.liljedahl@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1420639600-15980-1-git-send-email-ola.liljedahl@linaro.org> References: <1420639600-15980-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: <patchwork-forward.linaro.org> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Subscribe: <http://lists.linaro.org/mailman/listinfo/lng-odp>, <mailto:lng-odp-request@lists.linaro.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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.47 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 |
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;
As ODP cannot bring configured but offline cores online only report number of cores already online. Signed-off-by: Ola Liljedahl <ola.liljedahl@linaro.org> --- (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(-)