Browse Source

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 1 year ago
parent
commit
621ace510e
1 changed files with 4 additions and 0 deletions
  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); \
 		ipa3_dec_client_disable_clks_no_block(&log_info); \
 	} while (0)
 	} while (0)
 
 
+#ifdef IPA_DEBUG
 /*
 /*
  * Printing one warning message in 5 seconds if multiple warning messages
  * Printing one warning message in 5 seconds if multiple warning messages
  * are coming back to back.
  * are coming back to back.
@@ -146,6 +147,9 @@
 	if (unlikely(rtn && __ratelimit(&_rs)))			\
 	if (unlikely(rtn && __ratelimit(&_rs)))			\
 		WARN_ON(rtn);					\
 		WARN_ON(rtn);					\
 })
 })
+#else
+#define WARN_ON_RATELIMIT_IPA(condition) ((void)0)
+#endif
 
 
 /*
 /*
  * Printing one error message in 5 seconds if multiple error messages
  * Printing one error message in 5 seconds if multiple error messages