Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 34230
b: refs/heads/master
c: 8f21cf0
h: refs/heads/master
v: v3
  • Loading branch information
Herbert Xu committed Sep 21, 2006
1 parent 3478b3f commit 67986a6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6d7d684d635ac5a345f075015f2c84169c111c6a
refs/heads/master: 8f21cf0d2bae04ece761595036c9da8328b279aa
2 changes: 1 addition & 1 deletion trunk/crypto/cipher.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ static int crypt(const struct cipher_desc *desc,
if (!nbytes)
break;

crypto_yield(tfm);
crypto_yield(tfm->crt_flags);
}

if (buffer)
Expand Down
2 changes: 1 addition & 1 deletion trunk/crypto/digest.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ static void update(struct crypto_tfm *tfm,
tfm->__crt_alg->cra_digest.dia_update(tfm, p,
bytes_from_page);
crypto_kunmap(src, 0);
crypto_yield(tfm);
crypto_yield(tfm->crt_flags);
offset = 0;
pg++;
l -= bytes_from_page;
Expand Down
4 changes: 2 additions & 2 deletions trunk/crypto/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ static inline void crypto_kunmap(void *vaddr, int out)
kunmap_atomic(vaddr, crypto_kmap_type(out));
}

static inline void crypto_yield(struct crypto_tfm *tfm)
static inline void crypto_yield(u32 flags)
{
if (tfm->crt_flags & CRYPTO_TFM_REQ_MAY_SLEEP)
if (flags & CRYPTO_TFM_REQ_MAY_SLEEP)
cond_resched();
}

Expand Down

0 comments on commit 67986a6

Please sign in to comment.