linux/drivers/devfreq/event
Krzysztof Kozlowski 14714135a8 devfreq: exynos-ppmu: simplify parsing event-type from DT
When parsing devicetree, the function of_get_devfreq_events(), for each
device child node, iterates over array of possible events "ppmu_events"
till it finds one matching by node name.  When match is found the
ppmu_events[i] points to element having both the name of the event and
the counters ID.

Each PPMU device child node might have an "event-name" property with the
name of the event, however due to the design of devfreq it must be the
same as the device node name.  If it is not the same, the devfreq client
won't be able to use it via devfreq_event_get_edev_by_phandle().

Since PPMU device child node name must be equal to the "event-name"
property (event-name == ppmu_events[i].name), there is no need to find
the counters ID by the "event-name".  Instead use ppmu_events[i].id
which must be equal to it.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
2021-10-27 14:22:12 +09:00
..
exynos-nocp.c PM / devfreq: exynos: Rename Exynos to lowercase 2020-01-06 10:50:09 +09:00
exynos-nocp.h PM / devfreq: exynos: Rename Exynos to lowercase 2020-01-06 10:50:09 +09:00
exynos-ppmu.c devfreq: exynos-ppmu: simplify parsing event-type from DT 2021-10-27 14:22:12 +09:00
exynos-ppmu.h PM / devfreq: exynos: Rename Exynos to lowercase 2020-01-06 10:50:09 +09:00
Kconfig PM / devfreq: exynos: Rename Exynos to lowercase 2020-01-06 10:50:09 +09:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
rockchip-dfi.c PM / devfreq: rockchip-dfi: Convert to devm_platform_ioremap_resource 2019-12-30 09:59:06 +09:00