mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 12:33:27 +08:00
sched/sched/sched_gettcb.c: Fix break in building introduced in a recent commit.
This commit is contained in:
@@ -85,7 +85,7 @@ FAR struct tcb_s *sched_gettcb(pid_t pid)
|
||||
* terminating asynchronously.
|
||||
*/
|
||||
|
||||
flags = spin_lock_irqsave();
|
||||
flags = enter_critical_section();
|
||||
|
||||
/* Verify that the correct TCB was found. */
|
||||
|
||||
@@ -96,7 +96,7 @@ FAR struct tcb_s *sched_gettcb(pid_t pid)
|
||||
ret = g_pidhash[hash_ndx].tcb;
|
||||
}
|
||||
|
||||
spin_unlock_irqsave();
|
||||
leave_critical_section(flags);
|
||||
}
|
||||
|
||||
/* Return the TCB. */
|
||||
|
||||
Reference in New Issue
Block a user