From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f169.google.com (mail-wr0-f169.google.com [209.85.128.169]) by dpdk.org (Postfix) with ESMTP id D72F6101B for ; Mon, 27 Mar 2017 23:51:33 +0200 (CEST) Received: by mail-wr0-f169.google.com with SMTP id l43so76808082wre.1 for ; Mon, 27 Mar 2017 14:51:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=vjkcTc2kYGxkDuc7pUrk0k4bjkMw4IvtBKdFKnM5tcQ=; b=amadEsTaH0Z98ffvtNYcyAAcRH2q/drtKWaYANSkRpzYdLrLhy0j10uTAghKqqmASG jbasW1EKcTXAJyo74JxA5SGmAoB3ZgUeG5/13ndIYARKY1+n5IcDiX7TQ/BasFMHx8+n XC53rudOc+tPN64POGBYijnOkb3CubPNBZecqKYk3OT5l7zmkDIAKZf4ZLmxHMwIvb3R t7D7y/EVk/5CygWjI/vPoBtet4+oW3iKNoaM1seMCSIY/fKRLMTXZU9n5h+GFpqcwvBR BE/s4x4UN/152WD53MQdYS970O6Nd1Yx846cKjTuUEeczZ7X10wCmqKXzwSOvWtML1Ly gRGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=vjkcTc2kYGxkDuc7pUrk0k4bjkMw4IvtBKdFKnM5tcQ=; b=SYE0o4ePvpIQzwosoG56t6iVKeDZpICcJqyz6OsVAouzdM4oxo4hoG6j8/i6KlU+aV z1OIfN/YMmzLTZIJiTRxJw1+orl+7WfZbQhtrMVnsiru3Tbc+nbGy4Bq64hhVwntYIcE OkxOGWQ9va9kd9xs8MsCgI3yejoNPoC93IygGVyB3VFWa0ghT1IaseatOMQvfrE10Mmo EXmeHTyzAPKoYx2EeWUbjvqScmyLfE4Z6+lVwZN385KtAmd9Dv8XBuMUd/nNrZ6IlCQi eCH6tK1+yepszun7yKejXPMVvIF9OgJjdG4+2LY9WrWAjK1wl8uCHdZJ4jkZO+1DR1rN uTbA== X-Gm-Message-State: AFeK/H07Th5hdHBY0qf7ZJjFmJWlU+h/GXGVBn6cqlUCytvWGgdrzURennkZCF19DNb+vY4w X-Received: by 10.223.145.199 with SMTP id 65mr20560743wri.182.1490651490595; Mon, 27 Mar 2017 14:51:30 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id g5sm2245175wrb.48.2017.03.27.14.51.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Mar 2017 14:51:29 -0700 (PDT) From: Thomas Monjalon To: Bruce Richardson Cc: dev@dpdk.org Date: Mon, 27 Mar 2017 23:51:29 +0200 Message-ID: <1673950.bGzrNzyUOr@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <20170323150958.17089-1-bruce.richardson@intel.com> References: <20170323150958.17089-1-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] eal/bsd: query the cpu count only once X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Mar 2017 21:51:34 -0000 2017-03-23 15:09, Bruce Richardson: > Rather than querying the number of CPUs on the system multiple times, and > printing out the number each time, just query the value from sysctl once > and store it for future reuse. > > Signed-off-by: Bruce Richardson Applied, thanks