diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2021-03-03 13:35:44 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2021-04-16 22:03:50 +0300 |
commit | 07ff4aed015c564d03fd518d2fb54e5e6948903c (patch) | |
tree | a029bcbe6bd30a664a8d7ac3640f076ea0d25a49 /kernel/time | |
parent | 7b3efb50f7831102cb44d8a0e55d21f2cbac85fa (diff) | |
download | linux-07ff4aed015c564d03fd518d2fb54e5e6948903c.tar.xz |
time/timecounter: Mark 1st argument of timecounter_cyc2time() as const
The timecounter is not modified in this function. Mark it as const.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20210303103544.994855-1-mkl@pengutronix.de
Diffstat (limited to 'kernel/time')
-rw-r--r-- | kernel/time/timecounter.c | 2 |
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; |