summaryrefslogtreecommitdiffstats
path: root/src/net/retry.c
diff options
context:
space:
mode:
authorMichael Brown2007-07-03 21:09:14 +0200
committerMichael Brown2007-07-03 21:09:14 +0200
commitfd86c819ba559760b9bf7eaca1b21a0fd81ef6b6 (patch)
treeba4c0aa4612bed0a66d420a93356df09316214e0 /src/net/retry.c
parentMerge branch 'master' of /pub/scm/gpxe (diff)
downloadipxe-fd86c819ba559760b9bf7eaca1b21a0fd81ef6b6.tar.gz
ipxe-fd86c819ba559760b9bf7eaca1b21a0fd81ef6b6.tar.xz
ipxe-fd86c819ba559760b9bf7eaca1b21a0fd81ef6b6.zip
Use a linker-table based system to automatically mark and start up
permanent processes, rather than requiring each one to have its own initialisation function.
Diffstat (limited to 'src/net/retry.c')
-rw-r--r--src/net/retry.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/net/retry.c b/src/net/retry.c
index f8c34b81..6734968f 100644
--- a/src/net/retry.c
+++ b/src/net/retry.c
@@ -167,13 +167,6 @@ static void retry_step ( struct process *process __unused ) {
}
/** Retry timer process */
-static struct process retry_process = {
+struct process retry_process __permanent_process = {
.step = retry_step,
};
-
-/** Initialise the retry timer module */
-static void init_retry ( void ) {
- process_add ( &retry_process );
-}
-
-INIT_FN ( INIT_PROCESS, init_retry, NULL, NULL );