diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-11-23 14:06:26 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-10-20 14:59:55 +0200 |
commit | 1e554b8193d9dfe5f438b7f70d4b960ddcf918f7 (patch) | |
tree | f4f0e3b02d8e1509ded39bd38d547cdf281e8f04 /testsuite/media01/test_main.c | |
parent | rtems-kernel-page: Reclaim pages earlier (diff) | |
download | rtems-libbsd-1e554b8193d9dfe5f438b7f70d4b960ddcf918f7.tar.bz2 |
media01: Scale with processor count
Diffstat (limited to 'testsuite/media01/test_main.c')
-rw-r--r-- | testsuite/media01/test_main.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/testsuite/media01/test_main.c b/testsuite/media01/test_main.c index b808ad60..d09efd7c 100644 --- a/testsuite/media01/test_main.c +++ b/testsuite/media01/test_main.c @@ -29,6 +29,8 @@ * SUCH DAMAGE. */ +#include <sys/param.h> + #include <assert.h> #include <stdio.h> #include <stdlib.h> @@ -59,8 +61,8 @@ struct rtems_ftpd_configuration rtems_ftpd_configuration = { /* Root for FTPD or NULL for "/" */ .root = NULL, - /* Max. connections */ - .tasks_count = 4, + /* Max. connections depending on processor count */ + .tasks_count = 0, /* Idle timeout in seconds or 0 for no (infinite) timeout */ .idle = 5 * 60, @@ -140,6 +142,8 @@ test_main(void) int rv; rtems_status_code sc; + rtems_ftpd_configuration.tasks_count = MAX(4, + rtems_get_processor_count()); rv = rtems_initialize_ftpd(); assert(rv == 0); |