Commit 649b1c60 authored by Jan Kiszka's avatar Jan Kiszka

cobalt: Make some private functions static

Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent f116e7eb
......@@ -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);
}
......
......@@ -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);
}
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment