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:
Praveen Kurapati 2020-10-16 16:24:33 +05:30
commit 8fd807809b

View file

@ -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,