diff options
author | 2016-06-14 11:13:10 +0200 | |
---|---|---|
committer | 2016-07-08 17:52:19 +0200 | |
commit | f6f3bddf7b2b994a927808fcc5a3d07069c35956 (patch) | |
tree | ea4b977c05eee37a08393720a22e69e5c100c0f5 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | pwm: Add a helper to prepare a new PWM state (diff) | |
download | wireguard-linux-f6f3bddf7b2b994a927808fcc5a3d07069c35956.tar.xz wireguard-linux-f6f3bddf7b2b994a927808fcc5a3d07069c35956.zip |
pwm: Add relative duty cycle manipulation helpers
The PWM framework expects PWM users to configure the duty cycle in nano-
seconds, but many users want to express the duty cycle relatively to the
period value (i.e. duty_cycle = 33% of the period).
Add the pwm_{get,set}_relative_duty_cycle() helpers to ease this kind of
conversion.
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions