Skip to content
This repository was archived by the owner on Sep 16, 2025. It is now read-only.

Commit 99f8315

Browse files
committed
Nuttx schedular task switching
1 parent 6b5d1e2 commit 99f8315

1 file changed

Lines changed: 80 additions & 0 deletions

File tree

misc/schedular_task_switching

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
function up_reprioritize_rtr
2+
- context switching
3+
file /NuttX/arch/arm/src/arm/up_reprioritizertr.c
4+
- line 123
5+
6+
called in functions:
7+
- sched_roundrobin_process
8+
file /NuttX/sched/sched/sched_roundrobin.c
9+
- line 163
10+
11+
- nxsched_running_setpriority, nxsched_readytorun_setpriority
12+
file /NuttX/sched/sched/sched_setpriority.c
13+
- line 161, 241
14+
15+
16+
function up_release_pending
17+
- high likelihood of task switching
18+
file /NuttX/arch/arm/src/arm/up_releasepending.c
19+
- line 75
20+
21+
called in functions:
22+
- leave_critical_section
23+
file /NuttX/sched/irq/irq_csection.c
24+
- line 563
25+
- high likelihood of task switching
26+
27+
- sched_unlock
28+
file /NuttX/sched/sched/sched_unlock.c
29+
- line 157, 288,
30+
31+
----------------------------
32+
----------------------------
33+
function sched_roundrobin_process
34+
- check time slice of the current task
35+
36+
called in functions:
37+
- nxsched_cpu_scheduler
38+
file ,/NuttX/sched/sched/sched_processtimer
39+
- line 90
40+
41+
- nxsched_cpu_scheduler
42+
file ,/NuttX/sched/sched/sched_timerexpiration.c
43+
- line 203
44+
---------------------------
45+
46+
function nxsched_process_timer
47+
- function handles system timer events
48+
file /NuttX/sched/sched/sched_processtimer.c
49+
- line 90
50+
---------------------------
51+
52+
function nxsched_process_scheduler
53+
- check for operations of the currently active task on CPUs
54+
file /NuttX/sched/sched/sched_processtimer.c
55+
56+
called in functions:
57+
- nxsched_process_timer
58+
file /NuttX/sched/sched/sched_processtimer.c
59+
- line 224
60+
61+
---
62+
63+
function nxsched_cpu_scheduler
64+
- check for operations of the currently active task the CPUs
65+
file /NuttX/sched/sched/sched_processtimer.c
66+
67+
called in functions:
68+
- nxsched_process_scheduler
69+
file /NuttX/sched/sched/sched_processtimer.c
70+
- line 145, 153
71+
-----------------------------
72+
73+
called in functions:
74+
??
75+
- nxsched_cpu_scheduler, nxsched_timer_process
76+
file /NuttX/sched/sched/sched_timerexpiration.c
77+
- line 246, 373, 311, 324
78+
----------------------------------------------------------
79+
80+

0 commit comments

Comments
 (0)