CLEANUP: freq_ctr: make arguments of freq_ctr_total() const
freq_ctr_total() doesn't modify the freq counters, it should take a
const argument.
diff --git a/src/freq_ctr.c b/src/freq_ctr.c
index 974c12f..747a4cc 100644
--- a/src/freq_ctr.c
+++ b/src/freq_ctr.c
@@ -25,7 +25,7 @@
* read_freq_ctr_period() to avoid reporting ups and downs on low-frequency
* events when the past value is <= 1.
*/
-ullong freq_ctr_total(struct freq_ctr *ctr, uint period, int pend)
+ullong freq_ctr_total(const struct freq_ctr *ctr, uint period, int pend)
{
ullong curr, past;
uint curr_tick;