summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorDavid Lechner <dlechner@baylibre.com>2024-05-30 18:14:11 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2024-06-04 21:53:08 +0300
commit99d46eecf98fe9af4573363fcb5c8d8d36ce875e (patch)
treee3dd717476fd26b16f21dbf0428e21db10a4df84 /tools/perf/scripts/python/task-analyzer.py
parentd8f2bb50845f2797f594ffe3cac9417abff4d7b0 (diff)
downloadlinux-99d46eecf98fe9af4573363fcb5c8d8d36ce875e.tar.xz
iio: adc: ad7380: use spi_optimize_message()
This changes the AD7380 to use spi_optimize_message() to optimize buffered reads. This changes both direct reads and buffered reads to use the same spi_message. This has some (welcome) side effects. The first is that in buffered reads, the timestamp will now correspond to the same sample rather than the previous sample. The second is that direct reads now use the same SPI bus speed as buffered reads. This reduces CPU usage of the IRQ thread from around 25% to around 20% when sampling at 10 kHz on a ZedBoard. Signed-off-by: David Lechner <dlechner@baylibre.com> Reviewed-by: Nuno Sa <nuno.sa@analog.com> Link: https://lore.kernel.org/r/20240530-iio-add-support-for-multiple-scan-types-v3-4-cbc4acea2cfa@baylibre.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions