aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorBaruch Siach <[email protected]>2021-01-20 18:16:28 +0200
committerBartosz Golaszewski <[email protected]>2021-02-15 11:43:30 +0100
commit0b68d02b6a0dd2c7174a86a882e23d04fc7e7ca8 (patch)
tree6a81816cbff192fe9fc244f047d067ca35f81273 /tools/perf/util/scripting-engines/trace-event-python.c
parent2bee255a5ecf3213d118f22f6d8f65e4ec9101f2 (diff)
gpio: mvebu: improve handling of pwm zero on/off values
Hardware appears to treat zero value as 2^32. Take advantage of this fact to support on/off values of up to UINT_MAX+1 == 2^32. Adjust both .apply and .get_state to handle zero as a special case. Rounded up division result in .get_state can't be zero, since the dividend is now larger than 0. Remove check for this case. Reported-by: Uwe Kleine-König <[email protected]> Analyzed-by: Russell King <[email protected]> Signed-off-by: Baruch Siach <[email protected]> Reviewed-by: Uwe Kleine-König <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions