soc: qcom: rq_stats: use uint64_t instead of int64_t for timer diff
Assume time will not fall back and then there is no
need for checking if timer diff is < 0. So just
use uint64_t instead of int64_t for timer diff
to avoid the compiler warning of comparison of
distinct pointer types lacks a cast error.
Change-Id: I272de6d889cd5d9b6205c7dfb783883dd7060caf
Signed-off-by: Maria Yu <aiquny@codeaurora.org>
diff --git a/drivers/soc/qcom/rq_stats.c b/drivers/soc/qcom/rq_stats.c
index 5850c46..1b4cf4f 100644
--- a/drivers/soc/qcom/rq_stats.c
+++ b/drivers/soc/qcom/rq_stats.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2010-2015, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2010-2015, 2018, 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
@@ -264,7 +264,7 @@
static ssize_t show_def_timer_ms(struct kobject *kobj,
struct kobj_attribute *attr, char *buf)
{
- int64_t diff;
+ uint64_t diff;
unsigned int udiff;
diff = ktime_to_ns(ktime_get()) - rq_info.def_start_time;