aboutsummaryrefslogtreecommitdiff
path: root/lib/netdev-notifier-error-inject.c
diff options
context:
space:
mode:
authorLeonard Crestez <[email protected]>2019-12-05 12:05:07 +0200
committerChanwoo Choi <[email protected]>2019-12-09 12:19:16 +0900
commit27dbc542f651ed09de910f274b32634904103774 (patch)
treea74b9e5196e4c460a8d5ddc130011d84e9d9bae4 /lib/netdev-notifier-error-inject.c
parent05d7ae15cfb18f9ce55eef85bb6bcd62d31acc57 (diff)
PM / devfreq: Use PM QoS for sysfs min/max_freq
Switch the handling of min_freq and max_freq from sysfs to use the dev_pm_qos_request interface. Since PM QoS handles frequencies as kHz this change reduces the precision of min_freq and max_freq. This shouldn't introduce problems because frequencies which are not an integer number of kHz are likely not an integer number of Hz either. Try to ensure compatibility by rounding min values down and rounding max values up. Signed-off-by: Leonard Crestez <[email protected]> Acked-by: Chanwoo Choi <[email protected]> Reviewed-by: Matthias Kaehlcke <[email protected]> Tested-by: Matthias Kaehlcke <[email protected]> [cw00.choi: Return -EAGAIN instead of -EINVAL if dev_pm_qos is inactive] Signed-off-by: Chanwoo Choi <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions