aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_init.c
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2017-04-11 17:25:49 +0200
committerRickard Green <[email protected]>2017-04-11 17:25:49 +0200
commite2abc143613c83e00c7c2e22721d30fd2f6309a3 (patch)
tree2b50aba6a5f40a7ab4b4bed2eac458895b99a47b /erts/emulator/beam/erl_init.c
parent92a3b1a37182527d0bf8b6242d54e7fae6f4bbf9 (diff)
downloadotp-e2abc143613c83e00c7c2e22721d30fd2f6309a3.tar.gz
otp-e2abc143613c83e00c7c2e22721d30fd2f6309a3.tar.bz2
otp-e2abc143613c83e00c7c2e22721d30fd2f6309a3.zip
Fix +SDPcpu
Diffstat (limited to 'erts/emulator/beam/erl_init.c')
-rw-r--r--erts/emulator/beam/erl_init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_init.c b/erts/emulator/beam/erl_init.c
index 56c0f19230..541bfec532 100644
--- a/erts/emulator/beam/erl_init.c
+++ b/erts/emulator/beam/erl_init.c
@@ -1138,8 +1138,12 @@ early_init(int *argc, char **argv) /*
}
if (dirty_cpu_scheds > schdlrs)
dirty_cpu_scheds = schdlrs;
+ if (dirty_cpu_scheds < 1)
+ dirty_cpu_scheds = 1;
if (dirty_cpu_scheds_online > schdlrs_onln)
dirty_cpu_scheds_online = schdlrs_onln;
+ if (dirty_cpu_scheds_online < 1)
+ dirty_cpu_scheds_online = 1;
#endif
}