From cea1a19fe6ef162eadf91ddff47e9cbc3be67bd8 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Sun, 6 Sep 2020 12:41:21 -0400 Subject: [PATCH] NuttX sched notes add C linkage --- platforms/nuttx/src/px4/common/cpuload.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/platforms/nuttx/src/px4/common/cpuload.cpp b/platforms/nuttx/src/px4/common/cpuload.cpp index 67184bdf15..0786ee4d66 100644 --- a/platforms/nuttx/src/px4/common/cpuload.cpp +++ b/platforms/nuttx/src/px4/common/cpuload.cpp @@ -45,21 +45,12 @@ #include -#include - #if defined(__PX4_NUTTX) && defined(CONFIG_SCHED_INSTRUMENTATION) - +__BEGIN_DECLS # include -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