mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
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 <gsantosh@codeaurora.org>
This commit is contained in:
parent
10e4379923
commit
fd91ce15bd
1 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2014-2017, 2019, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2014-2018, 2019, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#define pr_fmt(fmt) "arm-memlat-mon: " fmt
|
||||
|
|
@ -69,7 +69,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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue