From e06b4a26ff1fc66d5ecda8d07f28c3b3af348a48 Mon Sep 17 00:00:00 2001 From: Brendon Scheinman Date: Sat, 23 Feb 2013 14:19:38 -0600 Subject: [PATCH] cleanup: Removed unnecessary code copied from ck_spinlock's throughput test --- regressions/ck_cohort/benchmark/throughput.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/regressions/ck_cohort/benchmark/throughput.c b/regressions/ck_cohort/benchmark/throughput.c index bcdb9ab..b624cc1 100644 --- a/regressions/ck_cohort/benchmark/throughput.c +++ b/regressions/ck_cohort/benchmark/throughput.c @@ -43,13 +43,6 @@ #include "../../common.h" -/* 8! = 40320, evenly divide 1 .. 8 processor workload. */ -#define WORKLOAD (40320 * 2056) - -#ifndef ITERATE -#define ITERATE 65536 -#endif - static struct affinity a; static unsigned int ready; @@ -135,10 +128,6 @@ main(int argc, char *argv[]) exit(EXIT_FAILURE); } -#ifdef LOCK_INIT - LOCK_INIT; -#endif - critical = atoi(argv[4]); if (critical < 0) { ck_error("ERROR: critical section cannot be negative\n");