diff options
| author | Michael Brown | 2012-08-31 20:50:56 +0200 |
|---|---|---|
| committer | Michael Brown | 2012-08-31 21:21:15 +0200 |
| commit | de802310bc3ce8adc42d2df71793da8cb830e2c8 (patch) | |
| tree | b987b41d6c943fefe1e6df2c285c3247c2119ddc /src/net | |
| parent | [ethernet] Expose eth_broadcast as a global constant (diff) | |
| download | ipxe-de802310bc3ce8adc42d2df71793da8cb830e2c8.tar.gz ipxe-de802310bc3ce8adc42d2df71793da8cb830e2c8.tar.xz ipxe-de802310bc3ce8adc42d2df71793da8cb830e2c8.zip | |
[retry] Expose retry_poll() to explicitly poll all running timers
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net')
| -rw-r--r-- | src/net/retry.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/net/retry.c b/src/net/retry.c index 4f43b76f9..8f210bdcc 100644 --- a/src/net/retry.c +++ b/src/net/retry.c @@ -177,11 +177,10 @@ static void timer_expired ( struct retry_timer *timer ) { } /** - * Single-step the retry timer list + * Poll the retry timer list * - * @v process Retry timer process */ -static void retry_step ( struct process *process __unused ) { +void retry_poll ( void ) { struct retry_timer *timer; unsigned long now = currticks(); unsigned long used; @@ -200,5 +199,14 @@ static void retry_step ( struct process *process __unused ) { } } +/** + * Single-step the retry timer list + * + * @v process Retry timer process + */ +static void retry_step ( struct process *process __unused ) { + retry_poll(); +} + /** Retry timer process */ PERMANENT_PROCESS ( retry_process, retry_step ); |
