linux/drivers/devfreq
Nicolas Frattaroli 7e85ac9da1 PM / devfreq: rockchip-dfi: switch to FIELD_PREP_WM16 macro
The era of hand-rolled HIWORD_UPDATE macros is over, at least for those
drivers that use constant masks.

Like many other Rockchip drivers, rockchip-dfi brings with it its own
HIWORD_UPDATE macro. This variant doesn't shift the value (and like the
others, doesn't do any checking).

Remove it, and replace instances of it with hw_bitfield.h's
FIELD_PREP_WM16.  Since FIELD_PREP_WM16 requires contiguous masks and
shifts the value for us, some reshuffling of definitions needs to
happen.

This gives us better compile-time error checking, and in my opinion,
nicer code.

Tested on an RK3568 ODROID-M1 board (LPDDR4X at 1560 MHz, an RK3588
Radxa ROCK 5B board (LPDDR4X at 2112 MHz) and an RK3588 Radxa ROCK 5T
board (LPDDR5 at 2400 MHz). perf measurements were consistent with the
measurements of stress-ng --stream in all cases.

Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Signed-off-by: Yury Norov (NVIDIA) <yury.norov@gmail.com>
2025-10-15 10:39:54 -04:00
..
event PM / devfreq: rockchip-dfi: switch to FIELD_PREP_WM16 macro 2025-10-15 10:39:54 -04:00
Kconfig PM / devfreq: Add HiSilicon uncore frequency scaling driver 2025-07-14 20:23:57 +09:00
Makefile PM / devfreq: Add HiSilicon uncore frequency scaling driver 2025-07-14 20:23:57 +09:00
devfreq-event.c PM / devfreq: event: Call of_node_put() only once in devfreq_event_get_edev_by_phandle() 2024-12-08 21:58:55 +09:00
devfreq.c PM / devfreq: Allow devfreq driver to add custom sysfs ABIs 2025-07-14 20:22:59 +09:00
exynos-bus.c PM / devfreq: exynos: remove unused function parameter 2025-01-11 21:03:07 +09:00
governor.h
governor_passive.c
governor_performance.c PM/devfreq: governor: add missing MODULE_DESCRIPTION() macros 2024-09-05 00:33:00 +09:00
governor_powersave.c PM/devfreq: governor: add missing MODULE_DESCRIPTION() macros 2024-09-05 00:33:00 +09:00
governor_simpleondemand.c PM/devfreq: governor: add missing MODULE_DESCRIPTION() macros 2024-09-05 00:33:00 +09:00
governor_userspace.c PM / devfreq: governor: Replace sscanf() with kstrtoul() in set_freq_store() 2025-07-14 20:04:16 +09:00
hisi_uncore_freq.c PM / devfreq: Add HiSilicon uncore frequency scaling driver 2025-07-14 20:23:57 +09:00
imx-bus.c PM / devfreq: imx-bus: Use of_property_present() 2024-09-05 01:23:56 +09:00
imx8m-ddrc.c PM / devfreq: Explicitly include correct DT includes 2023-07-24 05:19:26 +09:00
mtk-cci-devfreq.c PM / devfreq: mtk-cci: avoid redundant conditions 2025-09-08 17:19:25 +09:00
rk3399_dmc.c Get rid of 'remove_new' relic from platform driver struct 2024-12-01 15:12:43 -08:00
sun8i-a33-mbus.c PM / devfreq: sun8i-a33-mbus: Simplify by using more devm functions 2025-07-14 20:04:17 +09:00
tegra30-devfreq.c PM / devfreq: Explicitly include correct DT includes 2023-07-24 05:19:26 +09:00