Module: xenomai-forge
Branch: next
Commit: 4a7c033329750f9eea16b7f5c85a27de13f40b87
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=4a7c033329750f9eea16b7f5c85a27de13f40b87

Author: Philippe Gerum <r...@xenomai.org>
Date:   Tue May 27 10:02:24 2014 +0200

cobalt/thread: drop functionally redundant sc_cobalt_probe_np

Use sc_cobalt_kill(pid, 0) instead.

---

 include/cobalt/uapi/syscall.h |    2 +-
 kernel/cobalt/posix/syscall.c |    1 -
 kernel/cobalt/posix/thread.c  |   17 -----------------
 3 files changed, 1 insertion(+), 19 deletions(-)

diff --git a/include/cobalt/uapi/syscall.h b/include/cobalt/uapi/syscall.h
index 50d068f..937a2fd 100644
--- a/include/cobalt/uapi/syscall.h
+++ b/include/cobalt/uapi/syscall.h
@@ -61,7 +61,7 @@
 #define sc_cobalt_mq_timedsend          37
 /* 38 unimplemented */
 #define sc_cobalt_mq_timedreceive       39
-#define sc_cobalt_thread_probe          40
+/* 40 unimplemented */
 #define sc_cobalt_sched_minprio         41
 #define sc_cobalt_sched_maxprio         42
 #define sc_cobalt_timer_create          43
diff --git a/kernel/cobalt/posix/syscall.c b/kernel/cobalt/posix/syscall.c
index c5ef315..52e9f8c 100644
--- a/kernel/cobalt/posix/syscall.c
+++ b/kernel/cobalt/posix/syscall.c
@@ -96,7 +96,6 @@ static struct xnsyscall cobalt_syscalls[] = {
        SKINCALL_DEF(sc_cobalt_thread_wait, cobalt_thread_wait_np, primary),
        SKINCALL_DEF(sc_cobalt_thread_set_mode, cobalt_thread_set_mode_np, 
primary),
        SKINCALL_DEF(sc_cobalt_thread_set_name, cobalt_thread_set_name_np, any),
-       SKINCALL_DEF(sc_cobalt_thread_probe, cobalt_thread_probe_np, any),
        SKINCALL_DEF(sc_cobalt_thread_kill, cobalt_thread_kill, conforming),
        SKINCALL_DEF(sc_cobalt_thread_getstat, cobalt_thread_stat, any),
        SKINCALL_DEF(sc_cobalt_thread_join, cobalt_thread_join, primary),
diff --git a/kernel/cobalt/posix/thread.c b/kernel/cobalt/posix/thread.c
index b9c6d80..41fcd5d 100644
--- a/kernel/cobalt/posix/thread.c
+++ b/kernel/cobalt/posix/thread.c
@@ -1082,23 +1082,6 @@ int cobalt_thread_set_name_np(unsigned long pth, const 
char __user *u_name)
        return 0;
 }
 
-int cobalt_thread_probe_np(pid_t pid)
-{
-       int ret = 0;
-       spl_t s;
-
-       trace_cobalt_pthread_probe(pid);
-
-       xnlock_get_irqsave(&nklock, s);
-
-       if (cobalt_thread_find(pid) == NULL)
-               ret = -ESRCH;
-
-       xnlock_put_irqrestore(&nklock, s);
-
-       return ret;
-}
-
 int cobalt_thread_kill(unsigned long pth, int sig)
 {
        struct cobalt_local_hkey hkey;


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to