summaryrefslogtreecommitdiffstats
path: root/pcitool/cli.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2015-11-17 06:45:55 +0100
committerSuren A. Chilingaryan <csa@suren.me>2015-11-17 06:45:55 +0100
commit2455a677448e0e0c17d7193bf405b734b758811b (patch)
tree52ac392aec2e7869ef1e003dde4302407f9e0a66 /pcitool/cli.c
parent9efee359b26d7a54464ff20f38f319216fb248af (diff)
downloadpcitool-2455a677448e0e0c17d7193bf405b734b758811b.tar.gz
pcitool-2455a677448e0e0c17d7193bf405b734b758811b.tar.bz2
pcitool-2455a677448e0e0c17d7193bf405b734b758811b.tar.xz
pcitool-2455a677448e0e0c17d7193bf405b734b758811b.zip
IPEDMA Update
Diffstat (limited to 'pcitool/cli.c')
-rw-r--r--pcitool/cli.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pcitool/cli.c b/pcitool/cli.c
index 0696ef4..90f11d4 100644
--- a/pcitool/cli.c
+++ b/pcitool/cli.c
@@ -3715,6 +3715,10 @@ int main(int argc, char **argv) {
if (amode != ACCESS_DMA)
break;
case MODE_BENCHMARK:
+ sched_param.sched_priority = sched_get_priority_max(SCHED_FIFO);
+ err = sched_setscheduler(0, SCHED_FIFO, &sched_param);
+ if (err) pcilib_info("Failed to acquire real-time priority (errno: %i)", errno);
+ break;
case MODE_GRAB:
sched_param.sched_priority = sched_get_priority_min(SCHED_FIFO);
err = sched_setscheduler(0, SCHED_FIFO, &sched_param);