habanalabs: add rate-limit to an error message
authorOded Gabbay <oded.gabbay@gmail.com>
Thu, 6 Jun 2019 06:28:45 +0000 (09:28 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Thu, 6 Jun 2019 06:28:45 +0000 (09:28 +0300)
commit29a7aad59de25e56c82e6a3a9f8023d2e8a8423a
treefebbb0a6fcccfe529bb60e4a5e55a411923e0961
parent56e53806dc9eb9acdb914f59708ce1d815f3f86c
habanalabs: add rate-limit to an error message

This patch changes the print of an error message about mis-configuration
of the debug infrastructure to be rate-limited, to prevent flooding of
kernel log, as these configuration requests can come at a high rate.

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/habanalabs_ioctl.c