summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfbarrat <fbarrat@linux.ibm.com>2020-03-26 14:43:27 +0100
committerGitHub <noreply@github.com>2020-03-26 14:43:27 +0100
commite08ed916abdf89b2bf4838ac187ce3c9f72df0aa (patch)
tree879ccccff6196624c53c5dab85500d2e56163d43
parent4c0b78ac0a972fb518fcb8e08b75a9534dca9e3b (diff)
parentafa034210f6ca807498673511d6699b6e62739fd (diff)
Merge pull request #38 from fbarrat/afp_timeout
ocxl_afp3: Remove unused timeout parameter
-rw-r--r--afutests/afp/README.md1
-rw-r--r--afutests/afp/ocxl_afp3.c8
2 files changed, 1 insertions, 8 deletions
diff --git a/afutests/afp/README.md b/afutests/afp/README.md
index 3f25b4b..1c36ca5 100644
--- a/afutests/afp/README.md
+++ b/afutests/afp/README.md
@@ -39,7 +39,6 @@ Usage
--offsetmask Determines how much of buffer to use.
Default 512kB. Valid Range: 4K-512M.
Format: NumberLetter, e.g. 4K, 512K, 1M, 512M
- --timeout Default=1 seconds
--device Device to open instead of first AFP AFU found
--verbose Verbose output
--help Print this message
diff --git a/afutests/afp/ocxl_afp3.c b/afutests/afp/ocxl_afp3.c
index 0a77091..e418b3f 100644
--- a/afutests/afp/ocxl_afp3.c
+++ b/afutests/afp/ocxl_afp3.c
@@ -35,7 +35,6 @@
static int verbose;
-static int timeout = 1;
static int tags_ld = 0;
static int tags_st = 7;
static int size_ld = 128;
@@ -71,7 +70,6 @@ static void print_help(char *name)
printf("\t--wait \tAmount of seconds to wait between perf count reads, default is %d\n", waitTime);
printf("\t--prefetch \tInitialize buffer memory\n");
printf("\t--offsetmask\tDetermines how much of buffer to use. Default 512kB. Valid Range: 4K-512M. Format: NumberLetter, e.g. 4K, 512K, 1M, 512M\n");
- printf("\t--timeout \tDefault=%d seconds\n", timeout);
printf("\t--device \tDevice to open instead of first AFP AFU found\n");
printf("\t--verbose \tVerbose output\n");
printf("\t--help \tPrint this message\n");
@@ -104,14 +102,13 @@ int main(int argc, char *argv[])
{"wait", required_argument, 0, 'w'},
{"prefetch", no_argument, 0, 'p'},
{"offsetmask", required_argument, 0, 'o'},
- {"timeout", required_argument, 0, 't'},
{"verbose", no_argument, &verbose, 1 },
{"help", no_argument, 0, 'h'},
{"device", required_argument, 0, 'd'},
{NULL, 0, 0, 0}
};
- while ((opt = getopt_long(argc, argv, "avhc:t:d:", long_options, &option_index)) >= 0) {
+ while ((opt = getopt_long(argc, argv, "avhc:d:", long_options, &option_index)) >= 0) {
switch (opt) {
case 0:
case 'v':
@@ -188,9 +185,6 @@ int main(int argc, char *argv[])
if (offsetmask > 0x3FF)
printf("Warning: offsetmask is bigger than the 4MB memory buffer allocated by this app\n");
break;
- case 't':
- timeout = strtoul(optarg, NULL, 0);
- break;
case 'd':
device = optarg;
break;