mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 10:58:49 +08:00
Eliminate a warning
This commit is contained in:
parent
911209eb45
commit
04557a1198
1 changed files with 4 additions and 0 deletions
|
@ -67,10 +67,14 @@
|
|||
int sched_unlock(void)
|
||||
{
|
||||
FAR struct tcb_s *rtcb = this_task();
|
||||
#ifdef CONFIG_SMP
|
||||
int cpu;
|
||||
|
||||
cpu = this_cpu();
|
||||
rtcb = current_task(cpu);
|
||||
#else
|
||||
rtcb = this_task();
|
||||
#endif
|
||||
|
||||
/* Check for some special cases: (1) rtcb may be NULL only during
|
||||
* early boot-up phases, and (2) sched_unlock() should have no
|
||||
|
|
Loading…
Reference in a new issue