Explorar el Código

msm: ipa: Remove warnings when rate limited

Removed WARN_ON from the IPA rate limit macro.

Change-Id: Ifceeb4360bfd0141c95fb1c41855f09a349153f0
Signed-off-by: Chirag Rastogi <[email protected]>
Chirag Rastogi hace 1 año
padre
commit
621ace510e
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      drivers/platform/msm/ipa/ipa_common_i.h

+ 4 - 0
drivers/platform/msm/ipa/ipa_common_i.h

@@ -131,6 +131,7 @@
 		ipa3_dec_client_disable_clks_no_block(&log_info); \
 	} while (0)
 
+#ifdef IPA_DEBUG
 /*
  * Printing one warning message in 5 seconds if multiple warning messages
  * are coming back to back.
@@ -146,6 +147,9 @@
 	if (unlikely(rtn && __ratelimit(&_rs)))			\
 		WARN_ON(rtn);					\
 })
+#else
+#define WARN_ON_RATELIMIT_IPA(condition) ((void)0)
+#endif
 
 /*
  * Printing one error message in 5 seconds if multiple error messages