summaryrefslogtreecommitdiff
path: root/include/linux/timecounter.h
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2021-03-03 13:35:44 +0300
committerThomas Gleixner <tglx@linutronix.de>2021-04-16 22:03:50 +0300
commit07ff4aed015c564d03fd518d2fb54e5e6948903c (patch)
treea029bcbe6bd30a664a8d7ac3640f076ea0d25a49 /include/linux/timecounter.h
parent7b3efb50f7831102cb44d8a0e55d21f2cbac85fa (diff)
downloadlinux-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 'include/linux/timecounter.h')
-rw-r--r--include/linux/timecounter.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/timecounter.h b/include/linux/timecounter.h
index 754b74a2167f..c6540ceea143 100644
--- a/include/linux/timecounter.h
+++ b/include/linux/timecounter.h
@@ -124,7 +124,7 @@ extern u64 timecounter_read(struct timecounter *tc);
* This allows conversion of cycle counter values which were generated
* in the past.
*/
-extern u64 timecounter_cyc2time(struct timecounter *tc,
+extern u64 timecounter_cyc2time(const struct timecounter *tc,
u64 cycle_tstamp);
#endif