msm: camera: ratelimit ISP prints in IRQ/tasklet

There is a possibility a bunch of prints to be generated by the ISP
driver in interrupt or tasklet context in a case where something wrong
is going on in the userspace. Such case is when there is no fast enough
buffer queued to the stream or other more scary problems.

As the prints are done in a very high priority context and there can be
many of them for very short period of time, it can be observed an
unnecessary device slowdown or even in some cases the watchdog can bark.
In order to limit the amount of prints the ISP generates at this times a
ratelimit is applied.

Change-Id: I0f172f8eab6a5a51a888aea5cab776bf4bf5877e
Signed-off-by: Vladislav Hristov <vhrist@codeaurora.org>
1 file changed