mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
fs/procfs/fs_procfscritmon.c and sched/sched/sched_critmonitor.c: Add support for global pre-emption and global critical sections to monitor as suggested by Xiang Xaio.
This commit is contained in:
@@ -809,6 +809,18 @@ extern "C"
|
||||
#define EXTERN extern
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SCHED_CRITMONITOR
|
||||
/* Maximum time with pre-emption disabled or within critical section. */
|
||||
|
||||
#ifdef CONFIG_SMP_NCPUS
|
||||
EXTERN uint32_t g_premp_max[CONFIG_SMP_NCPUS];
|
||||
EXTERN uint32_t g_crit_max[CONFIG_SMP_NCPUS];
|
||||
#else
|
||||
EXTERN uint32_t g_premp_max[1];
|
||||
EXTERN uint32_t g_crit_max[1];
|
||||
#endif
|
||||
#endif /* CONFIG_SCHED_CRITMONITOR */
|
||||
|
||||
/********************************************************************************
|
||||
* Public Function Prototypes
|
||||
********************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user