From patchwork Tue Sep 4 11:00:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 145908 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp3516005ljw; Tue, 4 Sep 2018 04:00:56 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda69KDiBwdw20Cr+NeGJkIrUlG0UHKqMVtIgK6uMgcG5oYdKhSYMfDq7pxo6Qbh8LodPsp1 X-Received: by 2002:a0c:f685:: with SMTP id p5-v6mr28294308qvn.22.1536058856000; Tue, 04 Sep 2018 04:00:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536058855; cv=none; d=google.com; s=arc-20160816; b=hrY4P8VD+MV0cwFCMGAQt9Y8Qauy1ZIkLu59QF3H5T8YkuMlVZrYtQkS+4YaTcw5bQ qVwrOpwYVareBAc40AClU3eGGoeBOEqJdmWGzp5jTm9t2ov1UUtIwjD0f2xvsqOBYls0 EDGil/jNRfZk/uOSNW8bHFjbeZHL40xgHSaQMSYTALEgi8K71zvhWbHqYsGzb4yXVRE2 +QYmAbXIspK0aTlqJzeSENdua7mKWMXFXEPaxBMyZWJ3xtt/mRPAF1wRIHzFt0qtBMcq Y7A3zjWMgWcT+8rsdLx/SVfFiH5bB2EVrn3qFI27yin8RmFlzF1DhLsCSD3uEAtcAl3U pZCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=JFgQ2oNmcuJ57XYsl864zEcYsVHjMmYi4dBaR6BlazY=; b=nUACFVdGayPN775cRD7ez49auvHaaUNFqRXOHT5BWS84ZMvvMJI9PUE9QlMD69Aa7Y u21I6kdDZI/gjo9hFY4XByz/x7Qa3qR5agpvRzCixWXRrXygka4BjmZzQInSe07A31Nh rlRFDvnpfmhFsBe+7nsBOcUoi+MNPchjTQ54bI901wndFT2y2W+Ci8DFZCAFhc6xb9VZ RPKgd4Qa01/zbtGEEyWEhwBXSu2L4SfMhbbT5ctl4cA2madC8/dbImfz+KV4uvnCTztT RZSfB+21E3MUsvCk8zZMOgyUDsjup9JJXqfJ+Dg8jRolDwRNrtOi0D5Gzu9gwqj6zQ// /8xw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id u11-v6si2504393qvn.144.2018.09.04.04.00.55; Tue, 04 Sep 2018 04:00:55 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id A9F78685E4; Tue, 4 Sep 2018 11:00:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_LOW autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 6CFF560E8C; Tue, 4 Sep 2018 11:00:24 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id D708D618B2; Tue, 4 Sep 2018 11:00:19 +0000 (UTC) Received: from forward103p.mail.yandex.net (forward103p.mail.yandex.net [77.88.28.106]) by lists.linaro.org (Postfix) with ESMTPS id E150660CFC for ; Tue, 4 Sep 2018 11:00:13 +0000 (UTC) Received: from mxback2j.mail.yandex.net (mxback2j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10b]) by forward103p.mail.yandex.net (Yandex) with ESMTP id E0A1A2184CF8 for ; Tue, 4 Sep 2018 14:00:11 +0300 (MSK) Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [2a02:6b8:0:1a2d::25]) by mxback2j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id GHoWrN4PH0-0BnW0nk1; Tue, 04 Sep 2018 14:00:11 +0300 Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id Qr6wIRRKfs-09ZCxFKk; Tue, 04 Sep 2018 14:00:10 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Tue, 4 Sep 2018 11:00:05 +0000 Message-Id: <1536058806-6930-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1536058806-6930-1-git-send-email-odpbot@yandex.ru> References: <1536058806-6930-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 693 Subject: [lng-odp] [PATCH v1 1/2] linux-gen: sysinfo: return 0 if hugepages are not supported X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Dmitry Eremin-Solenikov Per API return 0 from odp_sys_huge_page_size_all() if hugepages are not supported/detected. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 693 (lumag:fix-cpu_max_hz) ** https://github.com/Linaro/odp/pull/693 ** Patch: https://github.com/Linaro/odp/pull/693.patch ** Base sha: 0a5d67beda902557056d5b5146d8cbe86e5001b0 ** Merge commit sha: 1585363355b8a72a90dd174216db95a06e062bad **/ 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 bca02ba14..2ac8b32bb 100644 --- a/platform/linux-generic/odp_system_info.c +++ b/platform/linux-generic/odp_system_info.c @@ -443,7 +443,7 @@ int odp_sys_huge_page_size_all(uint64_t size[], int num) dir = opendir("/sys/kernel/mm/hugepages"); if (!dir) { ODP_ERR("Failed to open huge page directory\n"); - return -1; + return 0; } while ((entry = readdir(dir)) != NULL) {