summaryrefslogtreecommitdiffstats
path: root/kernel/time/timecounter.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/time/timecounter.c')
-rw-r--r--kernel/time/timecounter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/time/timecounter.c b/kernel/time/timecounter.c
index 85b98e727306..e6285288d765 100644
--- a/kernel/time/timecounter.c
+++ b/kernel/time/timecounter.c
@@ -76,7 +76,7 @@ static u64 cc_cyc2ns_backwards(const struct cyclecounter *cc,
return ns;
}
-u64 timecounter_cyc2time(struct timecounter *tc,
+u64 timecounter_cyc2time(const struct timecounter *tc,
u64 cycle_tstamp)
{
u64 delta = (cycle_tstamp - tc->cycle_last) & tc->cc->mask;