diff options
author | Mayuresh Chitale <mchitale@ventanamicro.com> | 2022-10-18 19:38:51 +0530 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2022-11-08 15:34:21 +0000 |
commit | 23a8ed9073310d6aa06930cf65820cd2ccab2037 (patch) | |
tree | 7d00c5bc626bd345d54afc958df281f4de11b7ea | |
parent | ac16e9430627c8f502b949c569de03ddabac5821 (diff) | |
download | kvmtool-23a8ed9073310d6aa06930cf65820cd2ccab2037.tar.gz |
riscv: Add zihintpause extension support
The zihintpause extension allows software to use the PAUSE instruction to
reduce energy consumption while executing spin-wait code sequences. Add the
zihintpause extension to the device tree if it is supported by the host.
Signed-off-by: Mayuresh Chitale <mchitale@ventanamicro.com>
Link: https://lore.kernel.org/r/20221018140854.69846-4-apatel@ventanamicro.com
Signed-off-by: Will Deacon <will@kernel.org>
-rw-r--r-- | riscv/fdt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/riscv/fdt.c b/riscv/fdt.c index 42bc0629..ef0bc47e 100644 --- a/riscv/fdt.c +++ b/riscv/fdt.c @@ -20,6 +20,7 @@ struct isa_ext_info isa_info_arr[] = { {"svpbmt", KVM_RISCV_ISA_EXT_SVPBMT}, {"sstc", KVM_RISCV_ISA_EXT_SSTC}, {"svinval", KVM_RISCV_ISA_EXT_SVINVAL}, + {"zihintpause", KVM_RISCV_ISA_EXT_ZIHINTPAUSE}, }; static void dump_fdt(const char *dtb_file, void *fdt) |