mirror of
https://github.com/ipxe/ipxe
synced 2025-12-21 12:30:20 +03:00
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.
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user