aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLars-Peter Clausen <[email protected]>2012-09-17 13:26:00 +0100
committerJonathan Cameron <[email protected]>2012-09-17 22:09:59 +0100
commit37812d2e10e5790f3cc3319055aac0647080c4af (patch)
tree6f7b69bccef02ce8098d8e8c5afd429481dfbc1b /tools/perf/scripts/python
parenta0e545e0e75006a7de0e9bc5397f6b44c61990b2 (diff)
staging:iio:trigger:bfintmr: Avoid divide by zero
If the timer frequency has not been configured yet get_gptimer_period() will return 0. Handle this case instead of blindly dividing by the returned value. Signed-off-by: Lars-Peter Clausen <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions