[PATCH] char/tpm: use msleep(), clean-up timers,
commit700d8bdcd0fa815b08638b1e4d43b66d60cc6a8d
authorNishanth Aravamudan <nacc@us.ibm.com>
Fri, 24 Jun 2005 05:01:47 +0000 (23 22:01 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 24 Jun 2005 07:05:24 +0000 (24 00:05 -0700)
treec3defbf1cb77b9290a002cff04e1b2f054dfcb05
parent6a94f9209762a6eb286f668e1346ad87985cc765
[PATCH] char/tpm: use msleep(), clean-up timers,

The TPM driver unnecessarily uses timers when it simply needs to maintain a
maximum delay via time_before().  msleep() is used instead of
schedule_timeout() to guarantee the task delays as expected.  While
compile-testing, I found a typo in the driver, using tpm_chp instead of
tpm_chip.  Remove the now unused timer callback function and change
TPM_TIMEOUT's units to milliseconds.  Patch is compile-tested.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Acked-by: Kylene Hall <kjhall@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/tpm/tpm.c
drivers/char/tpm/tpm.h
drivers/char/tpm/tpm_nsc.c