Skip to content

Commit

Permalink
kernel_patch_verify: Fix -j cpu_count
Browse files Browse the repository at this point in the history
If you set the CPUs count (e.g, kernel_patch_verify -j8), then CPUS
var is set to 8. However, the assignment to KM_CPUS happens only if
CPUS is empty (if [ -z "$CPUS" ]; then) so effectively KM_CPUS is set
only if -j switch is not provided.

Move the KM_CPUS out of the empty CPUS check.

Signed-off-by: Michael Nemanov <[email protected]>
Signed-off-by: Nishanth Menon <[email protected]>
  • Loading branch information
michael-nemanov-ti authored and nmenon committed Aug 5, 2024
1 parent 6b6e80a commit 8c1ebdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel_patch_verify
Original file line number Diff line number Diff line change
Expand Up @@ -999,8 +999,8 @@ git config --global core.abbrev 12

if [ -z "$CPUS" ]; then
CPUS=$DEF_CPUS
KM_CPUS=$CPUS
fi
KM_CPUS=$CPUS

if [ -n "$CC" ]; then
KM_C="CC=$CC"
Expand Down

0 comments on commit 8c1ebdc

Please sign in to comment.