summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorKarthikeyan Ramasubramanian <kramasub@codeaurora.org>2016-02-08 12:03:37 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:07:57 -0700
commite9deb36997b8ccce89dfded1a9dbd6f7b233d0d0 (patch)
tree8fedfbfef889c1ac8896e3d2dc32da1ccc6d6459 /kernel
parent42e7b9ac7cf8eb669a65eb68a19379c779acf04e (diff)
trace: ipc_logging: Use virtual counter
Using the physical counter leads to a kernel BUG_ON(). Update the IPC Logging Driver to use virtual counter. Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/trace/ipc_logging.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/trace/ipc_logging.c b/kernel/trace/ipc_logging.c
index 98d8c7da18b8..4c84e5b2669e 100644
--- a/kernel/trace/ipc_logging.c
+++ b/kernel/trace/ipc_logging.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -428,7 +428,7 @@ EXPORT_SYMBOL(tsv_timestamp_write);
int tsv_qtimer_write(struct encode_context *ectxt)
{
int ret;
- uint64_t t_now = arch_counter_get_cntpct();
+ uint64_t t_now = arch_counter_get_cntvct();
ret = tsv_write_header(ectxt, TSV_TYPE_QTIMER, sizeof(t_now));
if (ret)