mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 06:42:32 +08:00
sched/sched: Modify the critical section interface name.
replace _wo_note to _notrace. Signed-off-by: wangzhi16 <wangzhi16@xiaomi.com>
This commit is contained in:
@@ -79,7 +79,7 @@ volatile uint8_t g_cpu_nestcount[CONFIG_SMP_NCPUS];
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: enter_critical_section_wo_note
|
||||
* Name: enter_critical_section_notrace
|
||||
*
|
||||
* Description:
|
||||
* Take the CPU IRQ lock and disable interrupts on all CPUs. A thread-
|
||||
@@ -89,7 +89,7 @@ volatile uint8_t g_cpu_nestcount[CONFIG_SMP_NCPUS];
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_SMP
|
||||
irqstate_t enter_critical_section_wo_note(void)
|
||||
irqstate_t enter_critical_section_notrace(void)
|
||||
{
|
||||
FAR struct tcb_s *rtcb;
|
||||
irqstate_t ret;
|
||||
@@ -255,7 +255,7 @@ irqstate_t enter_critical_section_wo_note(void)
|
||||
|
||||
#else
|
||||
|
||||
irqstate_t enter_critical_section_wo_note(void)
|
||||
irqstate_t enter_critical_section_notrace(void)
|
||||
{
|
||||
irqstate_t ret;
|
||||
|
||||
@@ -290,7 +290,7 @@ irqstate_t enter_critical_section(void)
|
||||
{
|
||||
FAR struct tcb_s *rtcb;
|
||||
irqstate_t flags;
|
||||
flags = enter_critical_section_wo_note();
|
||||
flags = enter_critical_section_notrace();
|
||||
|
||||
if (!up_interrupt_context())
|
||||
{
|
||||
@@ -311,7 +311,7 @@ irqstate_t enter_critical_section(void)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: leave_critical_section_wo_note
|
||||
* Name: leave_critical_section_notrace
|
||||
*
|
||||
* Description:
|
||||
* Decrement the IRQ lock count and if it decrements to zero then release
|
||||
@@ -320,7 +320,7 @@ irqstate_t enter_critical_section(void)
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_SMP
|
||||
void leave_critical_section_wo_note(irqstate_t flags)
|
||||
void leave_critical_section_notrace(irqstate_t flags)
|
||||
{
|
||||
int cpu;
|
||||
|
||||
@@ -420,7 +420,7 @@ void leave_critical_section_wo_note(irqstate_t flags)
|
||||
up_irq_restore(flags);
|
||||
}
|
||||
#else
|
||||
void leave_critical_section_wo_note(irqstate_t flags)
|
||||
void leave_critical_section_notrace(irqstate_t flags)
|
||||
{
|
||||
/* Check if we were called from an interrupt handler and that the tasks
|
||||
* lists have been initialized.
|
||||
@@ -465,6 +465,6 @@ void leave_critical_section(irqstate_t flags)
|
||||
}
|
||||
}
|
||||
|
||||
leave_critical_section_wo_note(flags);
|
||||
leave_critical_section_notrace(flags);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user