aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMatti Vaittinen <mazziesaccount@gmail.com>2024-02-12 13:20:09 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2024-02-19 19:32:12 +0000
commitbb76cc45dcdfcd962a5994b8fe19ab74fc6c3c3a (patch)
tree78c1ccdeccf75148407c85689ae594e7512a71be /tools/perf/scripts/python
parentiio: humidity: hdc3020: add threshold events support (diff)
downloadlinux-bb76cc45dcdfcd962a5994b8fe19ab74fc6c3c3a.tar.gz
linux-bb76cc45dcdfcd962a5994b8fe19ab74fc6c3c3a.zip
iio: gts-helper: Fix division loop
The loop based 64bit division may run for a long time when dividend is a lot bigger than the divider. Replace the division loop by the div64_u64() which implementation may be significantly faster. Tested-by: Subhajit Ghosh <subhajit.ghosh@tweaklogic.com> Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com> Fixes: 38416c28e168 ("iio: light: Add gain-time-scale helpers") Link: https://lore.kernel.org/r/Zcn-6e-0-nh2WcfU@drtxq0yyyyyyyyyyyyyby-3.rev.dnainternet.fi Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions