1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Copyright 2022-2023 Rivos, Inc
4  */
5 
6 #ifndef _ASM_CPUFEATURE_H
7 #define _ASM_CPUFEATURE_H
8 
9 /*
10  * These are probed via a device_initcall(), via either the SBI or directly
11  * from the corresponding CSRs.
12  */
13 struct riscv_cpuinfo {
14 	unsigned long mvendorid;
15 	unsigned long marchid;
16 	unsigned long mimpid;
17 };
18 
19 DECLARE_PER_CPU(struct riscv_cpuinfo, riscv_cpuinfo);
20 
21 DECLARE_PER_CPU(long, misaligned_access_speed);
22 
23 #endif
24