aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Bastoni <bastoni@cs.unc.edu>2010-04-21 17:30:31 -0400
committerAndrea Bastoni <bastoni@cs.unc.edu>2010-04-21 17:30:31 -0400
commite84fce96e96d8b5ee5e9531400b0735fb7e4fbb6 (patch)
tree8c43a66c15492d51d8cb4579fce29eb536cc8390
parent2e76f83c8ab6ce634d3a91724bfde81df88c15aa (diff)
Parametrize CYCLES per US2010.22010.1
-rw-r--r--src/ft2csv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ft2csv.c b/src/ft2csv.c
index ea497a3..cc6636f 100644
--- a/src/ft2csv.c
+++ b/src/ft2csv.c
@@ -37,7 +37,9 @@ static unsigned int skipped = 0;
37static unsigned int non_rt = 0; 37static unsigned int non_rt = 0;
38static unsigned int interleaved = 0; 38static unsigned int interleaved = 0;
39 39
40static unsigned long long threshold = 2700 * 1000; /* 1 ms == 1 full tick */ 40#define CYCLES_PER_US 2128
41
42static unsigned long long threshold = CYCLES_PER_US * 1000; /* 1 ms == 1 full tick */
41 43
42static struct timestamp* next(struct timestamp* start, struct timestamp* end, 44static struct timestamp* next(struct timestamp* start, struct timestamp* end,
43 int cpu) 45 int cpu)