diff options
author | Palmer Dabbelt <palmer@rivosinc.com> | 2024-01-03 04:09:39 -0800 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2024-01-09 20:10:13 -0800 |
commit | 7a4749739c5f26daaecbdd46e5ab33b3432c6c40 (patch) | |
tree | e5da197756655d7606cf6245d340f19937691b9b /arch/riscv/include/uapi/asm | |
parent | cbc911392c05762d27b96a376d4be90c5f21f99d (diff) | |
parent | ef7d6abb2cf57a18d34b332f0865c4d03bd810a3 (diff) | |
download | linux-stable-7a4749739c5f26daaecbdd46e5ab33b3432c6c40.tar.gz linux-stable-7a4749739c5f26daaecbdd46e5ab33b3432c6c40.tar.bz2 linux-stable-7a4749739c5f26daaecbdd46e5ab33b3432c6c40.zip |
Merge patch series "RISC-V: hwprobe: Introduce which-cpus"
Andrew Jones <ajones@ventanamicro.com> says:
This series introduces a flag for the hwprobe syscall which effectively
reverses its behavior from getting the values of keys for a set of cpus
to getting the cpus for a set of key-value pairs.
* b4-shazam-merge:
RISC-V: selftests: Add which-cpus hwprobe test
RISC-V: hwprobe: Introduce which-cpus flag
RISC-V: Move the hwprobe syscall to its own file
RISC-V: hwprobe: Clarify cpus size parameter
Link: https://lore.kernel.org/r/20231122164700.127954-6-ajones@ventanamicro.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/riscv/include/uapi/asm')
-rw-r--r-- | arch/riscv/include/uapi/asm/hwprobe.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/riscv/include/uapi/asm/hwprobe.h b/arch/riscv/include/uapi/asm/hwprobe.h index 91fbe1a7f2e2..12062a6345c4 100644 --- a/arch/riscv/include/uapi/asm/hwprobe.h +++ b/arch/riscv/include/uapi/asm/hwprobe.h @@ -66,4 +66,7 @@ struct riscv_hwprobe { #define RISCV_HWPROBE_KEY_ZICBOZ_BLOCK_SIZE 6 /* Increase RISCV_HWPROBE_MAX_KEY when adding items. */ +/* Flags */ +#define RISCV_HWPROBE_WHICH_CPUS (1 << 0) + #endif |