RISC-V: tidying: Prefer more canonical reference
1. Use canonical kernel.org repository instead of the GitHub mirror.
2. Refer to the fixed commit to guarantee access.
3. Use `uapi` part to ensure that the feature detection is primarily
intended for user-mode programs.
This commit is contained in:
parent
0b0c0e47f8
commit
c36e9de178
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ pub(crate) fn detect_features() -> cache::Initializer {
|
|||
|
||||
// The values are part of the platform-specific [asm/hwcap.h][hwcap]
|
||||
//
|
||||
// [hwcap]: https://github.com/torvalds/linux/blob/master/arch/riscv/include/asm/hwcap.h
|
||||
// [hwcap]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/riscv/include/uapi/asm/hwcap.h?h=v6.14
|
||||
let auxv = auxvec::auxv().expect("read auxvec"); // should not fail on RISC-V platform
|
||||
#[allow(clippy::eq_op)]
|
||||
enable_feature(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue