RFC Introduce & Optimize compat-mode helpers
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest4 patches 11 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | riscv: Replace direct thread flag check with is_compat_task()arch/ arch/ | +2 | 0 replies | |
| 2/4 | riscv: add compile-time test into is_compat_task()arch/ arch/ arch/ +1 more | +5 | 4 replies | |
| 3/4 | riscv: Introduce is_compat_thread() into compat.harch/ arch/ | +11 | 5 replies | |
| 4/4 | riscv: Introduce set_compat_task() in asm/compat.harch/ arch/ | +9 | 2 replies |
Reviews trailers per patch
3 of 4 patches have a Reviewed-by or Acked-by.
| Patch | Guo Ren | Andy Chiu |
|---|---|---|
| 1/4 | ||
| 2/4 | R-b | R-b |
| 3/4 | R-b | R-b |
| 4/4 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [RFC PATCH 0/4] Introduce & Optimize compat-mode helpers
I just saw the opportunity of optimizing the helper is_compat_task() by introducing a compile-time test, and it made possible to remove some #ifdef's without any loss of performance.
I also saw the possibility of removing the direct check of task flags from general code, and concentrated it in asm/compat.h by creating a few more helpers, which in the end helped optimize code.
Leonardo Bras (4):
riscv: Replace direct thread flag check with is_compat_task()
riscv: add compile-time test into is_compat_task()
riscv: Introduce is_compat_thread() into compat.h
riscv: Introduce set_compat_task() in asm/compat.h
arch/riscv/include/asm/compat.h | 19 +++++++++++++++++++ arch/riscv/include/asm/elf.h | 11 ++--------- arch/riscv/include/asm/pgtable.h | 8 +------- arch/riscv/include/asm/processor.h | 4 ++-- arch/riscv/kernel/ptrace.c | 6 +++--- 5 files changed, 27 insertions(+), 21 deletions(-)
base-commit: 24e0d2e527a39f64caeb2e6be39ad5396fb2da5e
Signature · 1 line
2.43.0