Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 204358
b: refs/heads/master
c: cc74f4b
h: refs/heads/master
v: v3
  • Loading branch information
Steffen Klassert authored and Herbert Xu committed Jul 26, 2010
1 parent 67fe52c commit bd2ba51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7424713b83587006da72da84d7922471e366faba
refs/heads/master: cc74f4bc111e9554bcd6445ad0fe1d90e5d2eb34
3 changes: 3 additions & 0 deletions trunk/crypto/pcrypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ static int pcrypt_do_parallel(struct padata_priv *padata, unsigned int *cb_cpu,
if (cpumask_test_cpu(cpu, cpumask->mask))
goto out;

if (!cpumask_weight(cpumask->mask))
goto out;

cpu_index = cpu % cpumask_weight(cpumask->mask);

cpu = cpumask_first(cpumask->mask);
Expand Down

0 comments on commit bd2ba51

Please sign in to comment.