From e9deb36997b8ccce89dfded1a9dbd6f7b233d0d0 Mon Sep 17 00:00:00 2001 From: Karthikeyan Ramasubramanian Date: Mon, 8 Feb 2016 12:03:37 -0700 Subject: 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 --- kernel/trace/ipc_logging.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kernel') 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) -- cgit v1.2.3