| 1 |
/* SPDX-License-Identifier: GPL-2.0 */ |
| 2 |
#ifndef _ASM_RISCV_VENDOR_EXTENSIONS_SIFIVE_HWPROBE_H |
| 3 |
#define _ASM_RISCV_VENDOR_EXTENSIONS_SIFIVE_HWPROBE_H |
| 4 |
|
| 5 |
#include <linux/cpumask.h> |
| 6 |
|
| 7 |
#include <uapi/asm/hwprobe.h> |
| 8 |
|
| 9 |
#ifdef CONFIG_RISCV_ISA_VENDOR_EXT_SIFIVE |
| 10 |
void hwprobe_isa_vendor_ext_sifive_0(struct riscv_hwprobe *pair, const struct cpumask *cpus); |
| 11 |
#else |
| 12 |
static inline void hwprobe_isa_vendor_ext_sifive_0(struct riscv_hwprobe *pair, |
| 13 |
const struct cpumask *cpus) |
| 14 |
{ |
| 15 |
pair->value = 0; |
| 16 |
} |
| 17 |
#endif |
| 18 |
|
| 19 |
#endif |