Update scheduler_up.c

This commit is contained in:
Dyyt587 2024-05-08 17:25:49 +08:00
parent 8c9ed5e090
commit a960c28548
1 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ static void (*rt_scheduler_switch_hook)(struct rt_thread *tid);
/**
* @brief pause usage measure
*/
#if RT_USING_CPU_USAGE
#ifdef RT_USING_CPU_USAGE
rt_weak
#endif /* RT_USING_CPU_USAGE */
void rt_usage_measure_pause(void)
@ -77,7 +77,7 @@ void rt_usage_measure_pause(void)
* @param from wait to turn on
* @param to turn to be
*/
#if RT_USING_CPU_USAGE
#ifdef RT_USING_CPU_USAGE
rt_weak
#endif /* RT_USING_CPU_USAGE */
void rt_usage_measure_start(struct rt_thread *from, struct rt_thread *to)