Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2877497pxb; Mon, 18 Oct 2021 03:57:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1fO2j59jxKCzXnY1b/ztwiysVs+UelbXm18kQUbvka+0whEw0izbPV5OaP4YFK2zJfJGk X-Received: by 2002:a63:6b42:: with SMTP id g63mr15530494pgc.461.1634554620283; Mon, 18 Oct 2021 03:57:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634554620; cv=none; d=google.com; s=arc-20160816; b=vQw7mx9hPETLz1xjrR+QA4oooxGHlxY93A6pc0Hds93xHru/kQRjGJ3eYkpbnatj2x nvuiEu/5FEfFeRSX0ldzAnrH6FiKh2K72yipuueRuN0QPfz2nk8bxKmllG6DO1TTUEiN 7GU5gUbDT8P/xlkthpgKoRjuyrX9EOy3n2ojNwHumEEg9CZZrgn750+6F0Igm2r7ZZy4 2Yc7Gp5Lq4urobZbdk9u0vwEz1Ig1zlCTdBe9V0+TbwDcOFJC7z3ysTiYog9Bl62DbV7 1+tb2Aexlxx1Z4Cb/Ny7Y0gziu1F0ndM2ZIN5f3W3PJmXV+T0ojPFmfwcDoH0lR4uI1+ JRIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=aeFfDONpeLuKY5a6M762Qaq3VkaP59h9695YQdV6Pm0=; b=V7b8rgBi0qPORSMzlvOLX6Z7XfTF4ftaTvjU3NHhpo32AeXx/RsT2P19mXHBrh1y5V YIVR7UF6HLFl7Ta0YWenAOh+5wQunFw04q1eZ8s9NjSIYbyDGeRWqUXeE9CraKFFE3Wb 0ivoPGnvo+sdh1I/ny5EWujJJrvt3jDPmVGPi3LPAWsBy48CYfSjzYy7Fixr12hXFHRg 3/PJyARyME/1oORysiKF8WdWamUJh2BahueIvwnfJrThtVFWAW98s69OaC8WIeIC2tdQ JTAHmoYWB0x53M7G7FjiUsQMqu43S+9vPuA23vuIk6MmhRQ1ujAjlZQQqwtkar61S/k4 sNfg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b10si24161062plh.361.2021.10.18.03.56.46; Mon, 18 Oct 2021 03:57:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230526AbhJRK5H (ORCPT + 99 others); Mon, 18 Oct 2021 06:57:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229901AbhJRK5E (ORCPT ); Mon, 18 Oct 2021 06:57:04 -0400 Received: from xavier.telenet-ops.be (xavier.telenet-ops.be [IPv6:2a02:1800:120:4::f00:14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BC86C061768 for ; Mon, 18 Oct 2021 03:54:53 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed20:e87a:7c37:aec5:5884]) by xavier.telenet-ops.be with bizsmtp id 7Nuq2600j22VXnz01NuqP1; Mon, 18 Oct 2021 12:54:50 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1mcQI6-005sWN-E9; Mon, 18 Oct 2021 12:54:50 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1mcQI5-00DbGX-Rj; Mon, 18 Oct 2021 12:54:49 +0200 From: Geert Uytterhoeven To: Rob Herring Cc: Stephen Boyd , Joey Gouly , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 1/2] dt-bindings: Parallelize yamllint Date: Mon, 18 Oct 2021 12:54:47 +0200 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use xargs sharding like "chk_bindings" does, to parallelize the execution of yamllint. This reduces the yamllint execution time from ca. 21 to 5 seconds on i7-8700K. Suggested-by: Rob Herring Signed-off-by: Geert Uytterhoeven --- v2: - New. --- Documentation/devicetree/bindings/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/Makefile b/Documentation/devicetree/bindings/Makefile index a072e95de626c83b..6305cfa9495ed676 100644 --- a/Documentation/devicetree/bindings/Makefile +++ b/Documentation/devicetree/bindings/Makefile @@ -28,7 +28,7 @@ find_cmd = find $(srctree)/$(src) \( -name '*.yaml' ! \ quiet_cmd_yamllint = LINT $(src) cmd_yamllint = ($(find_cmd) | \ - xargs $(DT_SCHEMA_LINT) -f parsable -c $(srctree)/$(src)/.yamllint >&2) || true + xargs -n200 -P$$(nproc) $(DT_SCHEMA_LINT) -f parsable -c $(srctree)/$(src)/.yamllint >&2) || true quiet_cmd_chk_bindings = CHKDT $@ cmd_chk_bindings = ($(find_cmd) | \ -- 2.25.1