Module: xenomai-jki Branch: for-upstream Commit: 367bab7e3f1a901b23533a27262c1fbaea3a92dd URL: http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=367bab7e3f1a901b23533a27262c1fbaea3a92dd
Author: Jan Kiszka <jan.kis...@siemens.com> Date: Sun Sep 11 13:26:20 2011 +0200 nucleus: Privatize __xnpod_reset_thread Not used outside of pod.c. Signed-off-by: Jan Kiszka <jan.kis...@siemens.com> --- include/nucleus/pod.h | 2 -- ksrc/nucleus/pod.c | 8 ++++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/include/nucleus/pod.h b/include/nucleus/pod.h index 24ec49f..0c3e10a 100644 --- a/include/nucleus/pod.h +++ b/include/nucleus/pod.h @@ -130,8 +130,6 @@ int __xnpod_set_thread_schedparam(struct xnthread *thread, const union xnsched_policy_param *sched_param, int propagate); -void __xnpod_reset_thread(struct xnthread *thread); - #ifdef CONFIG_XENO_HW_FPU void xnpod_switch_fpu(xnsched_t *sched); #endif /* CONFIG_XENO_HW_FPU */ diff --git a/ksrc/nucleus/pod.c b/ksrc/nucleus/pod.c index 8ad6f04..5f53002 100644 --- a/ksrc/nucleus/pod.c +++ b/ksrc/nucleus/pod.c @@ -814,13 +814,13 @@ EXPORT_SYMBOL_GPL(xnpod_start_thread); /*! * @internal - * \fn void __xnpod_reset_thread(struct xnthread *thread, int unlock) + * \fn void xnpod_reset_thread(struct xnthread *thread, int unlock) * \brief Reset the thread. * * This internal routine resets the state of a thread so that it can * be subsequently stopped or restarted. */ -void __xnpod_reset_thread(struct xnthread *thread) +static void xnpod_reset_thread(struct xnthread *thread) { /* Break the thread out of any wait it is currently in. */ xnpod_unblock_thread(thread); @@ -885,7 +885,7 @@ void xnpod_stop_thread(struct xnthread *thread) xnlock_get_irqsave(&nklock, s); if (!xnthread_test_state(thread, XNDORMANT)) { - __xnpod_reset_thread(thread); + xnpod_reset_thread(thread); xnpod_suspend_thread(thread, XNDORMANT, XN_INFINITE, XN_RELATIVE, NULL); } /* Otherwise, it is a nop. */ @@ -940,7 +940,7 @@ void xnpod_restart_thread(xnthread_t *thread) xnlock_get_irqsave(&nklock, s); - __xnpod_reset_thread(thread); + xnpod_reset_thread(thread); if (thread == xnpod_current_sched()->curr) xnthread_set_state(thread, XNRESTART); _______________________________________________ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git