diff options
author | Ian Moffett <ian@osmora.org> | 2025-08-20 00:35:47 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-08-20 00:35:47 -0400 |
commit | 188297a70053a59fddcca7dc598ae4adfaef4199 (patch) | |
tree | 863967ccbe3f22054fc50400aa301d14240edea2 /sys/include | |
parent | 32562fd6e829ca9262b8c78696930edfa15971de (diff) |
kernel/amd64: Add preemptable flag to cpu_info
Add a new 'preempt' field to cpu_info' to indicate if that specific processor is preemptable.
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r-- | sys/include/arch/amd64/cpu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/include/arch/amd64/cpu.h b/sys/include/arch/amd64/cpu.h index 6ed675e..cf073fe 100644 --- a/sys/include/arch/amd64/cpu.h +++ b/sys/include/arch/amd64/cpu.h @@ -58,6 +58,7 @@ struct cpu_info { uint32_t apicid; uint32_t feat; uint32_t vendor; /* Vendor (see CPU_VENDOR_*) */ + uint8_t preempt : 1; /* CPU is preemptable */ uint8_t ipi_dispatch : 1; /* 1: IPIs being dispatched */ uint8_t ipi_id; ipi_pend_t ipi_pending[N_IPIVEC]; |