From patchwork Tue Nov 25 17:03:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ola Liljedahl X-Patchwork-Id: 41495 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8F9E025E72 for ; Tue, 25 Nov 2014 17:04:06 +0000 (UTC) Received: by mail-la0-f72.google.com with SMTP id gq15sf694025lab.7 for ; Tue, 25 Nov 2014 09:04:05 -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=DAETsjsSmXbfDXFweqAIOrecp3zizw1mDLUaShGXYR8=; b=dUOC1KpNVQsoJBW2oISAN9bCdX1ND+XnqKFpuhE6t4++00QiJh5EoDcDe6huC/YVus sslEOeqAnSBNbOAzNhwkD7IeJldaxkfbBx33bSIuXoixoN8oZaC5f+cTGCC6rZvhzeSP S6Sc4a5CxRovJH6xp1HbnaM2UaLz9Y9CYiR0B+7fGJWpi3iFexgQGrymmjCC1/Zflg8a w1B2uDyrxk1pEWJrDVKQ24Xs0REir6ktR9tB2n32jF0RV6vgposxzKdI4W+EMbHRmoF0 cdizbuLbxI+TLLJT0IuIzYg0+PIbCafDqWtSHoo6uBSVk9V+0TWVXdSsKvBc/IHtzSoh QlTg== X-Gm-Message-State: ALoCoQlsYpcL9CJ3xQyw7yuafUnfNjdzQkyhl9nNLyDl0cLVVpo6roEsSrKMuwRRQ5xHuBLLhBJY X-Received: by 10.180.19.226 with SMTP id i2mr5812839wie.5.1416935045459; Tue, 25 Nov 2014 09:04:05 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.27.129 with SMTP id t1ls654142lag.53.gmail; Tue, 25 Nov 2014 09:04:05 -0800 (PST) X-Received: by 10.152.204.9 with SMTP id ku9mr28637128lac.55.1416935045209; Tue, 25 Nov 2014 09:04:05 -0800 (PST) Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com. [209.85.217.179]) by mx.google.com with ESMTPS id x8si1946530lax.57.2014.11.25.09.04.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Nov 2014 09:04:05 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.179 as permitted sender) client-ip=209.85.217.179; Received: by mail-lb0-f179.google.com with SMTP id z11so909243lbi.24 for ; Tue, 25 Nov 2014 09:04:05 -0800 (PST) X-Received: by 10.112.14.69 with SMTP id n5mr28666471lbc.34.1416935043477; Tue, 25 Nov 2014 09:04:03 -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.184.201 with SMTP id ew9csp472107lbc; Tue, 25 Nov 2014 09:04:02 -0800 (PST) X-Received: by 10.140.89.200 with SMTP id v66mr37768754qgd.85.1416935042206; Tue, 25 Nov 2014 09:04:02 -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 d7si1911609qge.72.2014.11.25.09.04.01 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 25 Nov 2014 09:04:02 -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 1XtJWx-0005Zf-H9; Tue, 25 Nov 2014 17:03:59 +0000 Received: from mail-lb0-f182.google.com ([209.85.217.182]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XtJWr-0005Za-Bm for lng-odp@lists.linaro.org; Tue, 25 Nov 2014 17:03:53 +0000 Received: by mail-lb0-f182.google.com with SMTP id f15so970060lbj.41 for ; Tue, 25 Nov 2014 09:03:47 -0800 (PST) X-Received: by 10.112.150.136 with SMTP id ui8mr28718263lbb.60.1416935027335; Tue, 25 Nov 2014 09:03:47 -0800 (PST) Received: from macmini.lan (84-217-193-77.tn.glocalnet.net. [84.217.193.77]) by mx.google.com with ESMTPSA id z6sm490718lae.2.2014.11.25.09.03.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 25 Nov 2014 09:03:46 -0800 (PST) From: Ola Liljedahl To: lng-odp@lists.linaro.org Date: Tue, 25 Nov 2014 18:03:43 +0100 Message-Id: <1416935023-30145-1-git-send-email-ola.liljedahl@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [PATCH] Report #cores on b.L systems 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.217.179 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 --- On ARM big.LITTLE systems with cluster switching, return the actual number of currently usable CPU's (e.g. 4, not 8). Trying to bind threads to cores 4..7 will just hang those threads. 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 10665bb..60804cb 100644 --- a/platform/linux-generic/odp_system_info.c +++ b/platform/linux-generic/odp_system_info.c @@ -51,7 +51,7 @@ static int sysconf_core_count(void) { long ret; - ret = sysconf(_SC_NPROCESSORS_CONF); + ret = sysconf(_SC_NPROCESSORS_ONLN); if (ret < 0) return 0;