|
Modules | |
| Work Queue Processing | |
Functions | |
| static __noreturn void | mainloop_run (struct workqueue *queue) |
| Run the main loop. | |
| static void | cpu_enter_sleep (void) |
| Enter the deepest possible sleep mode. | |
| void cpu_enter_sleep | ( | void | ) | [inline, static] |
Enter the deepest possible sleep mode.
This function will determine the lowest possible sleep mode that can safely be entered, enable interrupts and put the chip into that sleep mode. This will all happen atomically, so no interrupts will be handled before the sleep instruction has been executed.
Definition at line 50 of file sleep.h.
References cpu_irq_enable.
Referenced by mainloop_run().
| static __noreturn void mainloop_run | ( | struct workqueue * | queue | ) | [inline, static] |
Run the main loop.
This function will loop forever processing work queues and soft interrupts.
Definition at line 63 of file mainloop.h.
References assert, cpu_enter_sleep(), cpu_irq_disable, cpu_irq_enable, softirq_is_enabled(), softirq_poll(), workqueue_pop_task(), and workqueue_run_task().
Referenced by main().
1.6.3