1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright 2022-2023 Rivos, Inc
6 #ifndef _ASM_CPUFEATURE_H
7 #define _ASM_CPUFEATURE_H
10 * These are probed via a device_initcall(), via either the SBI or directly
11 * from the corresponding CSRs.
13 struct riscv_cpuinfo {
14 unsigned long mvendorid;
15 unsigned long marchid;
19 DECLARE_PER_CPU(struct riscv_cpuinfo, riscv_cpuinfo);
21 DECLARE_PER_CPU(long, misaligned_access_speed);