mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
Merge "qcacmn: Initialize __log_window_end_ticks variable explicitly"
This commit is contained in:
commit
340a69cc06
1 changed files with 3 additions and 1 deletions
|
|
@ -313,7 +313,9 @@ static void assert_on_excessive_logging(void)
|
|||
* Note: This is not thread safe, and can result in more than one reset.
|
||||
* For our purposes, this is fine.
|
||||
*/
|
||||
if (qdf_system_time_after(now, __log_window_end_ticks)) {
|
||||
if (!qdf_atomic_read(&__log_window_count)) {
|
||||
__log_window_end_ticks = now + qdf_system_ticks_per_sec;
|
||||
} else if (qdf_system_time_after(now, __log_window_end_ticks)) {
|
||||
__log_window_end_ticks = now + qdf_system_ticks_per_sec;
|
||||
qdf_atomic_set(&__log_window_count, 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue