Module: xenomai-jki
Branch: for-upstream
Commit: 77b937be2903dca7b959c3f8cf0786362d6344c3
URL:    
http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=77b937be2903dca7b959c3f8cf0786362d6344c3

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 d19999f..47d9969 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

Reply via email to