commit | a211970b42d618b588417daec647d2e15a3c1e52 | [log] [tgz] |
---|---|---|
author | Nicolas Pitre <npitre@baylibre.com> | Mon Jan 23 18:14:50 2023 -0500 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Tue Jan 24 15:26:18 2023 +0100 |
tree | b2d97781ce5dccd7ae85e8d6e5714a0c58ec0a8f | |
parent | 189fcbb3af5d1e3e34427537755f84f5254eeaff [diff] |
riscv: improve contended FPU switching We can leverage the FPU dirty state as an indicator for preemptively reloading the FPU content when a thread that did use the FPU before being scheduled out is scheduled back in. This avoids the FPU access trap overhead when switching between multiple threads with heavy FPU usage. Signed-off-by: Nicolas Pitre <npitre@baylibre.com>