Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
5a0e4122
Commit
5a0e4122
authored
13 years ago
by
Oleg Hahm
Browse files
Options
Downloads
Patches
Plain Diff
[core sched]
* removed declaration from header file
parent
364905f0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
core/include/queue.h
+1
-0
1 addition, 0 deletions
core/include/queue.h
core/include/sched.h
+4
-4
4 additions, 4 deletions
core/include/sched.h
core/sched.c
+7
-0
7 additions, 0 deletions
core/sched.c
with
12 additions
and
4 deletions
core/include/queue.h
+
1
−
0
View file @
5a0e4122
...
...
@@ -23,6 +23,7 @@ void queue_add_head(queue_node_t* root, queue_node_t* new_obj);
queue_node_t
*
queue_remove_head
(
queue_node_t
*
root
);
void
queue_priority_add
(
queue_node_t
*
root
,
queue_node_t
*
new_obj
);
void
queue_priority_add_generic
(
queue_node_t
*
root
,
queue_node_t
*
new_obj
,
int
(
*
cmp
)(
queue_node_t
*
,
queue_node_t
*
))
;
void
queue_remove
(
queue_node_t
*
root
,
queue_node_t
*
node
);
/** @} */
#endif // __QUEUE_H
This diff is collapsed.
Click to expand it.
core/include/sched.h
+
4
−
4
View file @
5a0e4122
...
...
@@ -27,13 +27,13 @@ void sched_run();
void
sched_set_status
(
tcb_t
*
process
,
unsigned
int
status
);
void
sched_switch
(
uint16_t
current_prio
,
uint16_t
other_prio
,
int
in_isr
);
volatile
unsigned
int
sched_context_switch_request
;
extern
volatile
unsigned
int
sched_context_switch_request
;
volatile
tcb_t
*
sched_threads
[
MAXTHREADS
];
volatile
tcb_t
*
active_thread
;
extern
volatile
tcb_t
*
sched_threads
[
MAXTHREADS
];
extern
volatile
tcb_t
*
active_thread
;
extern
volatile
int
num_tasks
;
volatile
int
thread_pid
;
extern
volatile
int
thread_pid
;
//#define SCHEDSTATISTICS
#if SCHEDSTATISTICS
...
...
This diff is collapsed.
Click to expand it.
core/sched.c
+
7
−
0
View file @
5a0e4122
...
...
@@ -25,6 +25,13 @@
volatile
int
num_tasks
=
0
;
volatile
unsigned
int
sched_context_switch_request
;
volatile
tcb_t
*
sched_threads
[
MAXTHREADS
];
volatile
tcb_t
*
active_thread
;
volatile
int
thread_pid
;
clist_node_t
*
runqueues
[
SCHED_PRIO_LEVELS
];
static
uint32_t
runqueue_bitcache
=
0
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment