NuttX sched notes add C linkage

This commit is contained in:
Daniel Agar 2020-09-06 12:41:21 -04:00 committed by Lorenz Meier
parent af84f449c7
commit cea1a19fe6
1 changed files with 2 additions and 11 deletions

View File

@ -45,21 +45,12 @@
#include <drivers/drv_hrt.h>
#include <sys/time.h>
#if defined(__PX4_NUTTX) && defined(CONFIG_SCHED_INSTRUMENTATION)
__BEGIN_DECLS
# include <nuttx/sched_note.h>
void sched_note_suspend(FAR struct tcb_s *tcb);
void sched_note_resume(FAR struct tcb_s *tcb);
__EXPORT void sched_note_switch(FAR struct tcb_s *pFromTcb, FAR struct tcb_s *pToTcb);
__EXPORT struct system_load_s system_load;
extern FAR struct tcb_s *sched_gettcb(pid_t pid);
static px4::atomic_int cpuload_monitor_all_count{0};
void cpuload_monitor_start()
@ -200,5 +191,5 @@ void sched_note_resume(FAR struct tcb_s *tcb)
}
}
}
__END_DECLS
#endif // PX4_NUTTX && CONFIG_SCHED_INSTRUMENTATION