AnsweredAssumed Answered

CPU consumption due to mdelay(5) in pxp_buf_queue

Question asked by Moreno Dissegna on Jan 13, 2020
Latest reply on Jan 15, 2020 by Moreno Dissegna

Hi everyone,

 

I'm working on an i.MX6UltraLite processor.

 

I noticed a call to mdelay(5) in the pxp_buf_queue function in mxc_pxp_v4l2.c.

This function is called once per every frame that is submitted to video4linux.

 

This means that if I play a video @ 25fps, about 12% CPU time is spent busy waiting.

This is confirmed by running gstreamer with the perf tool.

 

Is this delay really needed? What is its purpose?

Outcomes