Module: xenomai-3
Branch: arm64
Commit: 1c7fdf668a941ddd265cf29dc18f6d2410cd4c41
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=1c7fdf668a941ddd265cf29dc18f6d2410cd4c41

Author: Philippe Gerum <r...@xenomai.org>
Date:   Mon Aug 24 11:53:50 2015 +0200

utils/autotune: use default stack size

libcobalt sets a reasonable default stack size when initializing an
attribute descriptor, and autotune's stack requirements are
basic. Don't overwrite the default settings, use them.

---

 utils/autotune/autotune.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/utils/autotune/autotune.c b/utils/autotune/autotune.c
index 57a34f8..bbd16c7 100644
--- a/utils/autotune/autotune.c
+++ b/utils/autotune/autotune.c
@@ -159,7 +159,6 @@ static void create_sampler(pthread_t *tid, int fd)
        pthread_attr_setschedpolicy(&attr, SCHED_FIFO);
        param.sched_priority = 99;
        pthread_attr_setschedparam(&attr, &param);
-       pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN * 4);
        ret = pthread_create(tid, &attr, sampler_thread, (void *)(long)fd);
        if (ret)
                error(1, ret, "sampling thread");
@@ -180,7 +179,6 @@ static void create_load(pthread_t *tid)
        pthread_attr_setschedpolicy(&attr, SCHED_FIFO);
        param.sched_priority = 1;
        pthread_attr_setschedparam(&attr, &param);
-       pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN * 8);
        ret = pthread_create(tid, &attr, load_thread, NULL);
        if (ret)
                error(1, ret, "load thread");


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

Reply via email to