From 49eea524bebea0d2b7dfa1c709a6694de808eb8a Mon Sep 17 00:00:00 2001 From: Santosh Mardi Date: Thu, 17 May 2018 12:04:23 +0530 Subject: [PATCH] devfreq: update freq variable in compute_freq function Update freq variable from unsigned long to uint64_t of compute_freq function to be in compliance with 32 bit environment. Change-Id: Ia9183b0e593daf3780135a8e1ae8ddb36db16f86 Signed-off-by: Santosh Mardi --- drivers/devfreq/arm-memlat-mon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/devfreq/arm-memlat-mon.c b/drivers/devfreq/arm-memlat-mon.c index 1dca479fd8ba..81f7c162b069 100644 --- a/drivers/devfreq/arm-memlat-mon.c +++ b/drivers/devfreq/arm-memlat-mon.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014-2017, The Linux Foundation. All rights reserved. + * Copyright (c) 2014-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 @@ -82,7 +82,7 @@ static unsigned long compute_freq(struct cpu_pmu_stats *cpustats, { ktime_t ts; unsigned int diff; - unsigned long freq = 0; + uint64_t freq = 0; ts = ktime_get(); diff = ktime_to_us(ktime_sub(ts, cpustats->prev_ts));