scripts: coccicheck: Change default condition for parallelism
authorSumera Priyadarsini <sylphrenadin@gmail.com>
Sun, 11 Oct 2020 10:29:42 +0000 (15:59 +0530)
committerJulia Lawall <Julia.Lawall@lip6.fr>
Mon, 12 Oct 2020 08:37:56 +0000 (10:37 +0200)
commitc5864560d935db879cafa21feca0156d91eba842
tree333a8061c885f324a4fc6e54aaf42c6d9bd0ec28
parent2f324dd8ab2e3d8b097f3eac6d380d1adbdbe6e6
scripts: coccicheck: Change default condition for parallelism

Currently, Coccinelle uses at most one thread per core by default in
machines with more than 2 hyperthreads. However, for systems with only 4
hyperthreads, this does not improve performance.

Modify coccicheck to use all available threads in machines with
upto 4 hyperthreads.

Signed-off-by: Sumera Priyadarsini <sylphrenadin@gmail.com>
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
scripts/coccicheck