Commit 62fe0b3a authored by Federico Vaga's avatar Federico Vaga

tools: set irq coalesing only when user ask for it

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent f55e86f9
...@@ -405,11 +405,13 @@ int main(int argc, char **argv) ...@@ -405,11 +405,13 @@ int main(int argc, char **argv)
ref[ch] = -1; ref[ch] = -1;
} }
ret = fmctdc_coalescing_timeout_set(brd, ch, timeout_ms); if (timeout_ms > 0) {
if (ret) { ret = fmctdc_coalescing_timeout_set(brd, ch, timeout_ms);
fprintf(stderr, if (ret) {
"%s: chan %d: cannot set IRQ coalescing timeout: %s. Use default\n", fprintf(stderr,
argv[0], ch, fmctdc_strerror(errno)); "%s: chan %d: cannot set IRQ coalescing timeout: %s. Use default\n",
argv[0], ch, fmctdc_strerror(errno));
}
} }
/* set buffer mode */ /* set buffer mode */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment