diff options
| author | Bence Csokas <bence.csokas@arm.com> | 2026-10-01 13:00:07 +0200 |
|---|---|---|
| committer | Conor Dooley <conor.dooley@microchip.com> | 2026-10-13 15:43:48 +0100 |
| commit | b2f3a170ae968fac6270e89ce5738685bd2e530c (patch) | |
| tree | 797febda785bfb07eccdd43ec5d76c07eb05123c /tools/lib/python | |
| parent | 75effa447550c6eeb1198942e6b55dabeeb2dc64 (diff) | |
| download | linux-next-b2f3a170ae968fac6270e89ce5738685bd2e530c.tar.gz linux-next-b2f3a170ae968fac6270e89ce5738685bd2e530c.zip | |
cache: Make cpu_cache_invalidate_memregion() error out if there are no handlers
Currently, if there are no registered handlers,
cpu_cache_invalidate_memregion() returns 0. Callers are expected to check
cpu_cache_has_invalidate_memregion() and return -ENXIO themselves, instead
of calling this function. If a caller forgets to do this, they may
erroneously think the operation succeeded. This is in contrast to x86,
where cpu_cache_invalidate_memregion() itself checks if the operation is
supported, and returns -ENXIO if it is not.
Reviewed-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Signed-off-by: Bence Csokas <bence.csokas@arm.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
