xref: /linux/arch/riscv/include/asm/vdso/time_data.h (revision 25768de50b1f2dbb6ea44bd5148a87fe2c9c3688)
1*a812eee0SNam Cao /* SPDX-License-Identifier: GPL-2.0 */
2*a812eee0SNam Cao #ifndef __RISCV_ASM_VDSO_TIME_DATA_H
3*a812eee0SNam Cao #define __RISCV_ASM_VDSO_TIME_DATA_H
4*a812eee0SNam Cao 
5*a812eee0SNam Cao #include <linux/types.h>
6*a812eee0SNam Cao #include <vdso/datapage.h>
7*a812eee0SNam Cao #include <asm/hwprobe.h>
8*a812eee0SNam Cao 
9*a812eee0SNam Cao struct arch_vdso_time_data {
10*a812eee0SNam Cao 	/* Stash static answers to the hwprobe queries when all CPUs are selected. */
11*a812eee0SNam Cao 	__u64 all_cpu_hwprobe_values[RISCV_HWPROBE_MAX_KEY + 1];
12*a812eee0SNam Cao 
13*a812eee0SNam Cao 	/* Boolean indicating all CPUs have the same static hwprobe values. */
14*a812eee0SNam Cao 	__u8 homogeneous_cpus;
15*a812eee0SNam Cao };
16*a812eee0SNam Cao 
17*a812eee0SNam Cao #endif /* __RISCV_ASM_VDSO_TIME_DATA_H */
18