RE: [PATCH 39/52] tools/perf/build: Automatically build in parallel,based on number of CPUs in the syst

From: PÃdraig Brady
Date: Tue Oct 08 2013 - 08:04:42 EST


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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/