linux/drivers/devfreq
Sascha Hauer 9991166494 PM / devfreq: rockchip-dfi: Use free running counter
The DDR_MON counters are free running counters. These are resetted to 0
when starting them over like currently done when reading the current
counter values.

Resetting the counters becomes a problem with perf support we want to
add later, because perf needs counters that are not modified elsewhere.

This patch removes resetting the counters and keeps them running
instead. That means we no longer use the absolute counter values but
instead compare them with the counter values we read last time. Not
stopping the counters also has the impact that they are running while
we are reading them. We cannot read multiple timers atomically, so
the values do not exactly fit together. The effect should be negligible
though as the time between two measurements is some orders of magnitude
bigger than the time we need to read multiple registers.

Link: https://lore.kernel.org/all/20231018061714.3553817-7-s.hauer@pengutronix.de/
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
2023-10-18 18:34:09 +09:00
..
event PM / devfreq: rockchip-dfi: Use free running counter 2023-10-18 18:34:09 +09:00
devfreq-event.c driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
devfreq.c PM / devfreq: Switch to dev_pm_opp_find_freq_{ceil/floor}_indexed() APIs 2023-10-09 07:28:50 +09:00
exynos-bus.c PM / devfreq: exynos: add Exynos PPMU as a soft module dependency 2023-05-29 23:24:13 +09:00
governor_passive.c PM / devfreq: passive: revert an editing accident in SPDX-License line 2022-06-30 05:11:17 +09:00
governor_performance.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
governor_powersave.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
governor_simpleondemand.c PM / devfreq: Add governor attribute flag for specifc sysfs nodes 2020-10-26 11:46:54 +09:00
governor_userspace.c PM/devfreq: governor: Add a private governor_data for governor 2022-11-20 20:49:51 +09:00
governor.h PM / devfreq: passive: Keep cpufreq_policy for possible cpus 2022-05-17 18:24:39 +09:00
imx8m-ddrc.c PM / devfreq: Explicitly include correct DT includes 2023-07-24 05:19:26 +09:00
imx-bus.c PM / devfreq: Explicitly include correct DT includes 2023-07-24 05:19:26 +09:00
Kconfig PM / devfreq: Remove "select SRCU" 2023-03-13 19:36:15 +09:00
Makefile PM / devfreq: mediatek: Introduce MediaTek CCI devfreq driver 2022-07-15 11:40:08 +09:00
mtk-cci-devfreq.c PM / devfreq: mediatek: unlock on error in mtk_ccifreq_target() 2023-10-17 17:54:01 +09:00
rk3399_dmc.c PM / devfreq: rk3399_dmc: Block PMU during transitions 2022-05-09 03:38:07 +09:00
sun8i-a33-mbus.c PM / devfreq: Add a driver for the sun8i/sun50i MBUS 2021-12-10 15:56:07 +09:00
tegra30-devfreq.c PM / devfreq: Explicitly include correct DT includes 2023-07-24 05:19:26 +09:00