]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
riscv: cpufeature: Drop this_hwcap clear in T-Head vector workaround
authorHui Wang <hui.wang@canonical.com>
Thu, 30 Apr 2026 04:53:50 +0000 (12:53 +0800)
committerPaul Walmsley <pjw@kernel.org>
Thu, 30 Apr 2026 19:36:24 +0000 (13:36 -0600)
commitd272b8d2dd132de8579e3f79a77bc6ae58214a93
treea3bb7af0b795ab99c1e17b888efc566fa047a64d
parentf2abc305aa93f5b12d5c929d7a9c1cf7d7fee8af
riscv: cpufeature: Drop this_hwcap clear in T-Head vector workaround

The variable this_hwcap is initialized to 0 for each loop, it is not
necessary to do the bit clearance since this_hwcap is still 0 at this
point, clearing the source_isa is enough here.

Signed-off-by: Hui Wang <hui.wang@canonical.com>
Link: https://patch.msgid.link/20260430045350.22213-1-hui.wang@canonical.com
Signed-off-by: Paul Walmsley <pjw@kernel.org>
arch/riscv/kernel/cpufeature.c