| 1 |
/* SPDX-License-Identifier: GPL-2.0 */ |
| 2 |
#ifndef __RISCV_ASM_VDSO_ARCH_DATA_H |
| 3 |
#define __RISCV_ASM_VDSO_ARCH_DATA_H |
| 4 |
|
| 5 |
#include <linux/types.h> |
| 6 |
#include <vdso/datapage.h> |
| 7 |
#include <asm/hwprobe.h> |
| 8 |
|
| 9 |
struct vdso_arch_data { |
| 10 |
/* Stash static answers to the hwprobe queries when all CPUs are selected. */ |
| 11 |
__u64 all_cpu_hwprobe_values[RISCV_HWPROBE_MAX_KEY + 1]; |
| 12 |
|
| 13 |
/* Boolean indicating all CPUs have the same static hwprobe values. */ |
| 14 |
__u8 homogeneous_cpus; |
| 15 |
|
| 16 |
/* |
| 17 |
* A gate to check and see if the hwprobe data is actually ready, as |
| 18 |
* probing is deferred to avoid boot slowdowns. |
| 19 |
*/ |
| 20 |
__u8 ready; |
| 21 |
}; |
| 22 |
|
| 23 |
#endif /* __RISCV_ASM_VDSO_ARCH_DATA_H */ |