Make start_timer() and stop_timer() robust against incorrect usage.

This commit is contained in:
Michael Brown
2006-12-22 01:35:21 +00:00
parent 9485478acc
commit 66a7ed23cb
2 changed files with 12 additions and 2 deletions

View File

@@ -15,7 +15,10 @@ struct retry_timer {
struct list_head list;
/** Timeout value (in ticks) */
unsigned long timeout;
/** Start time (in ticks) */
/** Start time (in ticks)
*
* A start time of zero indicates a stopped timer.
*/
unsigned long start;
/** Retry count */
unsigned int count;