42 #include <px4_platform_common/px4_config.h> 44 #include <sys/types.h> 54 #include <arch/board/board.h> 59 #ifdef CONFIG_SCHED_INSTRUMENTATION 63 # include <nuttx/sched_note.h> 65 void sched_note_suspend(FAR
struct tcb_s *tcb);
66 void sched_note_resume(FAR
struct tcb_s *tcb);
68 __EXPORT void sched_note_switch(FAR
struct tcb_s *pFromTcb, FAR
struct tcb_s *pToTcb);
72 extern FAR
struct tcb_s *sched_gettcb(pid_t pid);
74 void cpuload_initialize_once()
83 int static_tasks_count = 2;
88 #if CONFIG_SCHED_WORKQUEUE 91 #if CONFIG_SCHED_LPWORK 107 void sched_note_start(FAR
struct tcb_s *tcb)
127 void sched_note_stop(FAR
struct tcb_s *tcb)
146 void sched_note_suspend(FAR
struct tcb_s *tcb)
162 void sched_note_resume(FAR
struct tcb_s *tcb)
172 irqstate_t irq_state = px4_enter_critical_section();
174 px4_leave_critical_section(irq_state);
High-resolution timer with callouts and timekeeping.
struct system_load_s system_load
__EXPORT hrt_abstime hrt_absolute_time(void)
Get absolute time in [us] (does not wrap).