mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
platforms: move CONFIG_FS_PROCFS_MAX_TASKS definition to cpuload.h
So it's used for both cases
This commit is contained in:
parent
70ec3493c5
commit
ad222760dd
@ -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};
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -33,6 +33,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#define CONFIG_FS_PROCFS_MAX_TASKS 64
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
__EXPORT void cpuload_monitor_start(void);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user