Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 11398ac7 authored by Maria Yu's avatar Maria Yu
Browse files

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: default avatarMaria Yu <aiquny@codeaurora.org>
parent e3fae817
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* 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 struct kobj_attribute run_queue_poll_ms_attr =
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;