public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* RE: [PATCH 39/52] tools/perf/build: Automatically build in parallel, based on number of CPUs in the syst
@ 2013-10-08 12:04 Pádraig Brady
  2013-10-08 12:22 ` Ingo Molnar
  0 siblings, 1 reply; 2+ messages in thread
From: Pádraig Brady @ 2013-10-08 12:04 UTC (permalink / raw)
  To: Ingo Molnar, Linux Kernel Mailing List

On 10/08/2013 10:02 AM, Ingo Molnar wrote:
> +ifeq ($(JOBS),)
> +  JOBS := $(shell grep -c ^processor /proc/cpuinfo 2>/dev/null)

nproc is probably ubiquitous enough to use now
(available since coreutils 8.1 (end of 2009))

As well as being more concise, it will take
account of offline CPUs etc.

> +  ifeq ($(JOBS),)
> +    JOBS := 1
> +  endif
> +endif

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-10-08 12:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-08 12:04 [PATCH 39/52] tools/perf/build: Automatically build in parallel, based on number of CPUs in the syst Pádraig Brady
2013-10-08 12:22 ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox