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