1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* 3 * Copyright (C) 2025 MIPS. 4 */ 5 6 #ifndef _ASM_RISCV_VENDOR_EXTENSIONS_MIPS_HWPROBE_H_ 7 #define _ASM_RISCV_VENDOR_EXTENSIONS_MIPS_HWPROBE_H_ 8 9 #include <linux/cpumask.h> 10 #include <uapi/asm/hwprobe.h> 11 12 #ifdef CONFIG_RISCV_ISA_VENDOR_EXT_MIPS 13 void hwprobe_isa_vendor_ext_mips_0(struct riscv_hwprobe *pair, const struct cpumask *cpus); 14 #else hwprobe_isa_vendor_ext_mips_0(struct riscv_hwprobe * pair,const struct cpumask * cpus)15static inline void hwprobe_isa_vendor_ext_mips_0(struct riscv_hwprobe *pair, 16 const struct cpumask *cpus) 17 { 18 pair->value = 0; 19 } 20 #endif 21 22 #endif // _ASM_RISCV_VENDOR_EXTENSIONS_MIPS_HWPROBE_H_ 23