diff options
| author | 2025-07-21 09:26:32 +0800 | |
|---|---|---|
| committer | 2025-07-21 09:26:32 +0800 | |
| commit | 640f8424caad0ba69d89556a5d7d3be29c0e55d4 (patch) | |
| tree | 5a1325e99d027fbf1acde7ce69f27a618f5bf9d7 /scripts/basic/git:/ssh:/git@git.zx2c4.com | |
| parent | Linux 6.16-rc7 (diff) | |
| download | wireguard-linux-640f8424caad0ba69d89556a5d7d3be29c0e55d4.tar.xz wireguard-linux-640f8424caad0ba69d89556a5d7d3be29c0e55d4.zip | |
LoongArch: KVM: Rework kvm_send_pv_ipi()
The function in fact traverses a "bitmap" stored in GPR regs A1 and A2,
but does it in a non-obvious way by creating a single-word bitmap twice.
This patch switches the function to create a single 2-word bitmap, and
also employs for_each_set_bit() macro, as it helps to drop most of the
housekeeping code.
While there, convert the function to return void to not confuse readers
with unchecked result.
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Yury Norov (NVIDIA) <yury.norov@gmail.com>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'scripts/basic/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
