|
@@ -35,9 +35,21 @@ struct retry_timer {
|
35
|
35
|
};
|
36
|
36
|
|
37
|
37
|
extern void start_timer ( struct retry_timer *timer );
|
38
|
|
-extern void start_timer_nodelay ( struct retry_timer *timer );
|
|
38
|
+extern void start_timer_fixed ( struct retry_timer *timer,
|
|
39
|
+ unsigned long timeout );
|
39
|
40
|
extern void stop_timer ( struct retry_timer *timer );
|
40
|
41
|
|
|
42
|
+/**
|
|
43
|
+ * Start timer with no delay
|
|
44
|
+ *
|
|
45
|
+ * @v timer Retry timer
|
|
46
|
+ *
|
|
47
|
+ * This starts the timer running with a zero timeout value.
|
|
48
|
+ */
|
|
49
|
+static inline void start_timer_nodelay ( struct retry_timer *timer ) {
|
|
50
|
+ start_timer_fixed ( timer, 0 );
|
|
51
|
+}
|
|
52
|
+
|
41
|
53
|
/**
|
42
|
54
|
* Test to see if timer is currently running
|
43
|
55
|
*
|