mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
msm: ipa3: Fix to use proper clock timer
Add changes for active client logging info to use proper timer and reflect number of active clients. Change-Id: Ifff1616c88850ef8c604bca54957d953e5154598 Signed-off-by: Praveen Kurapati <pkurapat@codeaurora.org>
This commit is contained in:
parent
1903fc4aed
commit
8fd807809b
1 changed files with 11 additions and 4 deletions
|
|
@ -35,6 +35,12 @@
|
|||
#include <linux/of_irq.h>
|
||||
#include <linux/ctype.h>
|
||||
#include "gsi.h"
|
||||
#include <linux/sched.h>
|
||||
#include <asm/arch_timer.h>
|
||||
#include <linux/sched/clock.h>
|
||||
#include <linux/jiffies.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/wait.h>
|
||||
|
||||
#ifdef CONFIG_ARM64
|
||||
|
||||
|
|
@ -5281,13 +5287,14 @@ static void ipa3_active_clients_log_mod(
|
|||
}
|
||||
|
||||
if (id->type != SIMPLE) {
|
||||
t = local_clock();
|
||||
t = sched_clock();
|
||||
nanosec_rem = do_div(t, 1000000000) / 1000;
|
||||
snprintf(temp_str, IPA3_ACTIVE_CLIENTS_LOG_LINE_LEN,
|
||||
inc ? "[%5lu.%06lu] ^ %s, %s: %d" :
|
||||
"[%5lu.%06lu] v %s, %s: %d",
|
||||
inc ? "[%5lu.%06lu] ^ %s, %s: %d cnt = %d" :
|
||||
"[%5lu.%06lu] v %s, %s: %d cnt = %d",
|
||||
(unsigned long)t, nanosec_rem,
|
||||
id->id_string, id->file, id->line);
|
||||
id->id_string, id->file, id->line,
|
||||
atomic_read(&ipa3_ctx->ipa3_active_clients.cnt));
|
||||
ipa3_active_clients_log_insert(temp_str);
|
||||
}
|
||||
spin_unlock_irqrestore(&ipa3_ctx->ipa3_active_clients_logging.lock,
|
||||
|
|
|
|||
Loading…
Reference in a new issue