platforms: move CONFIG_FS_PROCFS_MAX_TASKS definition to cpuload.h

So it's used for both cases
This commit is contained in:
Beat Küng 2022-08-12 14:44:04 +02:00 committed by Daniel Agar
parent 70ec3493c5
commit ad222760dd
3 changed files with 10 additions and 4 deletions

View File

@ -43,11 +43,9 @@
#include <px4_platform_common/px4_config.h>
#include <stdint.h>
#include <px4_platform/cpuload.h>
#ifndef CONFIG_FS_PROCFS_MAX_TASKS
#define CONFIG_FS_PROCFS_MAX_TASKS 64
#endif
#include <stdint.h>
struct print_load_s {
uint64_t total_user_time{0};

View File

@ -33,6 +33,12 @@
#pragma once
#include <board_config.h>
#ifndef CONFIG_FS_PROCFS_MAX_TASKS
#define CONFIG_FS_PROCFS_MAX_TASKS 64
#endif
#ifdef CONFIG_SCHED_INSTRUMENTATION
#include <sched.h>

View File

@ -33,6 +33,8 @@
#pragma once
#define CONFIG_FS_PROCFS_MAX_TASKS 64
__BEGIN_DECLS
__EXPORT void cpuload_monitor_start(void);