diff options
| author | 2026-10-27 22:51:24 +0800 | |
|---|---|---|
| committer | 2026-10-27 22:51:24 +0800 | |
| commit | 23534c6efeb718e8a4d9107fa7d6707b5b1f5859 (patch) | |
| tree | 6947c05f35856b49a29581b34a3c3d6da86cdffc /scripts/Makefile.thinlto | |
| parent | LoongArch: Remove arch-specific __smp_mb__{before,after}_atomic() (diff) | |
LoongArch: Remove redundant call in update_bp_registers()
In update_bp_registers(), there is a duplicate call to write_wb_reg()
when enabling an execute breakpoint:
write_wb_reg(CSR_CFG_CTRL, i, 0, CTRL_PLV_ENABLE);
write_wb_reg(CSR_CFG_CTRL, i, 0, CTRL_PLV_ENABLE);
The two lines are completely identical. Remove the redundant call to
clean up the code and eliminate unnecessary register writes.
Cc: stable@vger.kernel.org
Fixes: edffa33c7bb5 ("LoongArch: Add hardware breakpoints/watchpoints support")
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
