diff options
author | Nayna Jain <[email protected]> | 2017-10-17 16:32:32 -0400 |
---|---|---|
committer | Jarkko Sakkinen <[email protected]> | 2018-01-08 12:58:33 +0200 |
commit | 5ef924d9e2e81e55c6aec056449a269409e15f21 (patch) | |
tree | 77efe1a4d50e91a0f3bac78cdfad029efb73deed /net/unix/sysctl_net_unix.c | |
parent | cf151a9a44d52a63332e8e926234574fe5a5d784 (diff) |
tpm: use tpm_msleep() value as max delay
Currently, tpm_msleep() uses delay_msec as the minimum value in
usleep_range. However, that is the maximum time we want to wait.
The function is modified to use the delay_msec as the maximum
value, not the minimum value.
After this change, performance on a TPM 1.2 with an 8 byte
burstcount for 1000 extends improved from ~9sec to ~8sec.
Fixes: 3b9af007869("tpm: replace msleep() with usleep_range() in TPM 1.2/
2.0 generic drivers")
Signed-off-by: Nayna Jain <[email protected]>
Acked-by: Mimi Zohar <[email protected]>
Tested-by: Jarkko Sakkinen <[email protected]>
Reviewed-by: Jarkko Sakkinen <[email protected]>
Signed-off-by: Jarkko Sakkinen <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions