Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xenomai
xenomai
Commits
649b1c60
Commit
649b1c60
authored
Nov 22, 2018
by
Jan Kiszka
Browse files
cobalt: Make some private functions static
Signed-off-by:
Jan Kiszka
<
jan.kiszka@siemens.com
>
parent
f116e7eb
Changes
3
Hide whitespace changes
Inline
Side-by-side
kernel/cobalt/sched-idle.c
View file @
649b1c60
...
...
@@ -23,25 +23,25 @@ static struct xnthread *xnsched_idle_pick(struct xnsched *sched)
return
&
sched
->
rootcb
;
}
bool
xnsched_idle_setparam
(
struct
xnthread
*
thread
,
const
union
xnsched_policy_param
*
p
)
static
bool
xnsched_idle_setparam
(
struct
xnthread
*
thread
,
const
union
xnsched_policy_param
*
p
)
{
return
__xnsched_idle_setparam
(
thread
,
p
);
}
void
xnsched_idle_getparam
(
struct
xnthread
*
thread
,
union
xnsched_policy_param
*
p
)
static
void
xnsched_idle_getparam
(
struct
xnthread
*
thread
,
union
xnsched_policy_param
*
p
)
{
__xnsched_idle_getparam
(
thread
,
p
);
}
void
xnsched_idle_trackprio
(
struct
xnthread
*
thread
,
const
union
xnsched_policy_param
*
p
)
static
void
xnsched_idle_trackprio
(
struct
xnthread
*
thread
,
const
union
xnsched_policy_param
*
p
)
{
__xnsched_idle_trackprio
(
thread
,
p
);
}
void
xnsched_idle_protectprio
(
struct
xnthread
*
thread
,
int
prio
)
static
void
xnsched_idle_protectprio
(
struct
xnthread
*
thread
,
int
prio
)
{
__xnsched_idle_protectprio
(
thread
,
prio
);
}
...
...
kernel/cobalt/sched-rt.c
View file @
649b1c60
...
...
@@ -91,25 +91,25 @@ void xnsched_rt_tick(struct xnsched *sched)
xnsched_putback
(
sched
->
curr
);
}
bool
xnsched_rt_setparam
(
struct
xnthread
*
thread
,
const
union
xnsched_policy_param
*
p
)
static
bool
xnsched_rt_setparam
(
struct
xnthread
*
thread
,
const
union
xnsched_policy_param
*
p
)
{
return
__xnsched_rt_setparam
(
thread
,
p
);
}
void
xnsched_rt_getparam
(
struct
xnthread
*
thread
,
union
xnsched_policy_param
*
p
)
static
void
xnsched_rt_getparam
(
struct
xnthread
*
thread
,
union
xnsched_policy_param
*
p
)
{
__xnsched_rt_getparam
(
thread
,
p
);
}
void
xnsched_rt_trackprio
(
struct
xnthread
*
thread
,
const
union
xnsched_policy_param
*
p
)
static
void
xnsched_rt_trackprio
(
struct
xnthread
*
thread
,
const
union
xnsched_policy_param
*
p
)
{
__xnsched_rt_trackprio
(
thread
,
p
);
}
void
xnsched_rt_protectprio
(
struct
xnthread
*
thread
,
int
prio
)
static
void
xnsched_rt_protectprio
(
struct
xnthread
*
thread
,
int
prio
)
{
__xnsched_rt_protectprio
(
thread
,
prio
);
}
...
...
kernel/cobalt/sched-weak.c
View file @
649b1c60
...
...
@@ -44,8 +44,8 @@ static struct xnthread *xnsched_weak_pick(struct xnsched *sched)
return
xnsched_getq
(
&
sched
->
weak
.
runnable
);
}
bool
xnsched_weak_setparam
(
struct
xnthread
*
thread
,
const
union
xnsched_policy_param
*
p
)
static
bool
xnsched_weak_setparam
(
struct
xnthread
*
thread
,
const
union
xnsched_policy_param
*
p
)
{
if
(
!
xnthread_test_state
(
thread
,
XNBOOST
))
xnthread_set_state
(
thread
,
XNWEAK
);
...
...
@@ -53,14 +53,14 @@ bool xnsched_weak_setparam(struct xnthread *thread,
return
xnsched_set_effective_priority
(
thread
,
p
->
weak
.
prio
);
}
void
xnsched_weak_getparam
(
struct
xnthread
*
thread
,
union
xnsched_policy_param
*
p
)
static
void
xnsched_weak_getparam
(
struct
xnthread
*
thread
,
union
xnsched_policy_param
*
p
)
{
p
->
weak
.
prio
=
thread
->
cprio
;
}
void
xnsched_weak_trackprio
(
struct
xnthread
*
thread
,
const
union
xnsched_policy_param
*
p
)
static
void
xnsched_weak_trackprio
(
struct
xnthread
*
thread
,
const
union
xnsched_policy_param
*
p
)
{
if
(
p
)
thread
->
cprio
=
p
->
weak
.
prio
;
...
...
@@ -68,7 +68,7 @@ void xnsched_weak_trackprio(struct xnthread *thread,
thread
->
cprio
=
thread
->
bprio
;
}
void
xnsched_weak_protectprio
(
struct
xnthread
*
thread
,
int
prio
)
static
void
xnsched_weak_protectprio
(
struct
xnthread
*
thread
,
int
prio
)
{
if
(
prio
>
XNSCHED_WEAK_MAX_PRIO
)
prio
=
XNSCHED_WEAK_MAX_PRIO
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment