Module: xenomai-2.5
Branch: master
Commit: 4be0333bef1a7dd41ef79b4d31209642b05e5593
URL:    
http://git.xenomai.org/?p=xenomai-2.5.git;a=commit;h=4be0333bef1a7dd41ef79b4d31209642b05e5593

Author: Alexis Berlemont <alexis.berlem...@gmail.com>
Date:   Tue Mar 16 01:11:55 2010 +0100

analogy: remove rt_task_set_mode from test programs

---

 src/utils/analogy/cmd_read.c  |   33 ---------------------------------
 src/utils/analogy/cmd_write.c |   11 -----------
 2 files changed, 0 insertions(+), 44 deletions(-)

diff --git a/src/utils/analogy/cmd_read.c b/src/utils/analogy/cmd_read.c
index 32d3db0..1345f5b 100644
--- a/src/utils/analogy/cmd_read.c
+++ b/src/utils/analogy/cmd_read.c
@@ -375,17 +375,6 @@ int main(int argc, char *argv[])
        if (verbose != 0)
                printf("cmd_read: command successfully sent\n");
 
-       if (real_time != 0) {
-
-               ret = rt_task_set_mode(0, T_PRIMARY, NULL);
-               if (ret < 0) {
-                       fprintf(stderr,
-                               "cmd_read: rt_task_set_mode failed (ret=%d)\n",
-                               ret);
-                       goto out_main;
-               }
-       }
-
        if (use_mmap == 0) {
 
                /* Fetch data */
@@ -409,17 +398,6 @@ int main(int argc, char *argv[])
                        /* Update the counter */
                        cnt += ret;
 
-                       if (real_time != 0) {
-                               int err = rt_task_set_mode(0, T_PRIMARY, NULL);
-                               if (err < 0) {
-                                       fprintf(stderr,
-                                               "cmd_read: rt_task_set_mode 
failed (ret=%d)\n",
-                                               err);
-                                       ret = err;
-                                       goto out_main;
-                               }
-                       }
-
                } while (ret > 0);
 
        } else {
@@ -466,17 +444,6 @@ int main(int argc, char *argv[])
                                goto out_main;
                        }
 
-                       if (real_time != 0) {
-                               int err = rt_task_set_mode(0, T_PRIMARY, NULL);
-                               if (err < 0) {
-                                       fprintf(stderr,
-                                               "cmd_read: rt_task_set_mode 
failed (ret=%d)\n",
-                                               err);
-                                       ret = err;
-                                       goto out_main;
-                               }
-                       }
-
                        /* Update the counter */
                        cnt += front;
 
diff --git a/src/utils/analogy/cmd_write.c b/src/utils/analogy/cmd_write.c
index 2e152ed..c76fa81 100644
--- a/src/utils/analogy/cmd_write.c
+++ b/src/utils/analogy/cmd_write.c
@@ -300,17 +300,6 @@ int main(int argc, char *argv[])
        for (i = 0; i < BUF_SIZE; i++)
                buf[i] = i;
 
-       if (real_time != 0) {
-
-               ret = rt_task_set_mode(0, T_PRIMARY, NULL);
-               if (ret < 0) {
-                       fprintf(stderr, 
-                               "cmd_read: rt_task_set_mode failed (ret=%d)\n",
-                               ret);
-                       goto out_main;
-               }
-       }
-
        if (use_mmap == 0) {
 
                /* Send data */


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to