Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
f4grx
NuttX RTOS
Commits
a6ccb7f3
Commit
a6ccb7f3
authored
9 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
Sporadic scheduler: Third design. Now it looks closer to what I want
parent
dd5b0657
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/nuttx/sched.h
+7
-2
7 additions, 2 deletions
include/nuttx/sched.h
sched/sched/sched_sporadic.c
+449
-131
449 additions, 131 deletions
sched/sched/sched_sporadic.c
with
456 additions
and
133 deletions
include/nuttx/sched.h
+
7
−
2
View file @
a6ccb7f3
...
...
@@ -164,6 +164,12 @@
# define CHILD_FLAG_TTYPE_KERNEL (2 << CHILD_FLAG_TTYPE_SHIFT)
/* Kernel thread */
#define CHILD_FLAG_EXITED (1 << 0)
/* Bit 2: The child thread has exit'ed */
/* Sporadic scheduler flags */
#define SPORADIC_FLAG_ALLOCED (1 << 0)
/* Bit 0: Timer is allocated */
#define SPORADIC_FLAG_MAIN (1 << 1)
/* Bit 1: The main timer */
#define SPORADIC_FLAG_REPLENISH (1 << 2)
/* Bit 2: Replenishment cycle */
/********************************************************************************
* Public Type Definitions
********************************************************************************/
...
...
@@ -254,8 +260,7 @@ struct replenishment_s
FAR
struct
tcb_s
*
tcb
;
/* The parent TCB structure */
struct
wdog_s
timer
;
/* Timer dedicated to this interval */
uint32_t
budget
;
/* Current budget time */
uint32_t
unrealized
;
/* Unrealized time of budget time */
bool
active
;
/* True: replenishment instance is busy */
uint8_t
flags
;
/* See SPORADIC_FLAG_* definitions */
};
/* This structure is an allocated "plug-in" to the main TCB structure. It is
...
...
This diff is collapsed.
Click to expand it.
sched/sched/sched_sporadic.c
+
449
−
131
View file @
a6ccb7f3
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