projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb17127
)
dt-bindings: Parallelize yamllint
author
Geert Uytterhoeven
<geert+renesas@glider.be>
Mon, 18 Oct 2021 10:54:47 +0000
(12:54 +0200)
committer
Rob Herring
<robh@kernel.org>
Wed, 20 Oct 2021 18:34:42 +0000
(13:34 -0500)
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 <robh+dt@kernel.org>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link:
https://lore.kernel.org/r/c68bdbdf3112c4658e0748c8fc51959e69fbae2e.1634551582.git.geert+renesas@glider.be
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/Makefile
patch
|
blob
|
history
diff --git
a/Documentation/devicetree/bindings/Makefile
b/Documentation/devicetree/bindings/Makefile
index a072e95de626c83beff27b04cfe8845432a76912..6305cfa9495ed676ca552a2bdf526a1bca034713 100644
(file)
--- 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) | \