summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.c b/main.c
index c383bf7..59b9654 100644
--- a/main.c
+++ b/main.c
@@ -41,6 +41,7 @@ extern struct barrier_s *barr;
extern int num_cpus;
extern int act_cpus;
extern unsigned smp_page;
+extern int conservative_smp;
static int find_ticks_for_test(int test);
void find_ticks_for_pass(void);
@@ -319,6 +320,11 @@ static void parse_command_line(void)
cp += 8;
maxcpus=(int)simple_strtoul(cp, &dummy, 10);
}
+ /* Allow SMP to be enabled by default */
+ if (!strncmp(cp, "smp", 3)) {
+ cp += 3;
+ conservative_smp = 0;
+ }
/* Run one pass and exit if there are no errors */
if (!strncmp(cp, "onepass", 7)) {
cp += 7;