aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_init.c
diff options
context:
space:
mode:
authorErlang/OTP <[email protected]>2013-09-16 16:21:35 +0200
committerErlang/OTP <[email protected]>2013-09-16 16:21:35 +0200
commita3941acbcd17afb80167ee906530cabed2a76f56 (patch)
treed77555ccad374284569087d58b57a6e4e399370f /erts/emulator/beam/erl_init.c
parentc72b20183a780c7199d3959f09eb88c1a930a064 (diff)
parent1fefbd886bf3f02f0d34d64ea49d3d0838cba9ee (diff)
downloadotp-a3941acbcd17afb80167ee906530cabed2a76f56.tar.gz
otp-a3941acbcd17afb80167ee906530cabed2a76f56.tar.bz2
otp-a3941acbcd17afb80167ee906530cabed2a76f56.zip
Merge branch 'fredrik/sfwi-r15b03/OTP-11164' into maint-r15
* fredrik/sfwi-r15b03/OTP-11164: erts: reorganization of functions to r15b03 standards erts: bumped version number erts: Add the +sfwi system flag
Diffstat (limited to 'erts/emulator/beam/erl_init.c')
-rw-r--r--erts/emulator/beam/erl_init.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_init.c b/erts/emulator/beam/erl_init.c
index 1eb3dba240..7f52b111ac 100644
--- a/erts/emulator/beam/erl_init.c
+++ b/erts/emulator/beam/erl_init.c
@@ -1240,6 +1240,22 @@ erl_start(int argc, char **argv)
("suggested scheduler thread stack size %d kilo words\n",
erts_sched_thread_suggested_stack_size));
}
+ else if (has_prefix("fwi", sub_param)) {
+ long val;
+ arg = get_arg(sub_param+3, argv[i+1], &i);
+ errno = 0;
+ val = strtol(arg, NULL, 10);
+ if (errno != 0 || val < 0) {
+ erts_fprintf(stderr,
+ "bad scheduler forced wakeup "
+ "interval %s\n",
+ arg);
+ erts_usage();
+ }
+#ifdef ERTS_SMP
+ erts_runq_supervision_interval = val;
+#endif
+ }
else {
erts_fprintf(stderr, "bad scheduling option %s\n", argv[i]);
erts_usage();