4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-21 00:27:19 +08:00

Update scheduler_up.c

This commit is contained in:
Dyyt587 2024-05-08 17:25:49 +08:00
parent 8c9ed5e090
commit a960c28548

View File

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