From 2455a677448e0e0c17d7193bf405b734b758811b Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Tue, 17 Nov 2015 06:45:55 +0100 Subject: IPEDMA Update --- pcitool/cli.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pcitool') 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); -- cgit v1.2.3