diff options
| author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2026-07-06 18:05:44 +0200 |
|---|---|---|
| committer | Anup Patel <anup@brainfault.org> | 2026-08-20 17:57:19 +0530 |
| commit | 3876e7574dd7eff9241e6fb0a3822e4e51731b9f (patch) | |
| tree | ba5eb0a32e609c7aa9130d0a9596422f1a0b587e /include | |
| parent | c5e90d4286211e5a68c157f435f12745705dfa51 (diff) | |
| download | opensbi-3876e7574dd7eff9241e6fb0a3822e4e51731b9f.tar.gz opensbi-3876e7574dd7eff9241e6fb0a3822e4e51731b9f.zip | |
lib: make SBI_HARTMASK_MAX_BITS customizable, default 256
Linux has raised the default number of 64bit CPUs to 256 in commit
0fa749771993 ("riscv: Raise default NR_CPUS for 64BIT to 256").
OpenSBI should use a matching value for SBI_HARTMASK_MAX_BITS.
Introduce configuration variable CONFIG_HARTMASK_MAX_BITS with
range 32-512 and default 256.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/20260706160544.697409-1-heinrich.schuchardt@canonical.com
Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/sbi/sbi_hartmask.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sbi/sbi_hartmask.h b/include/sbi/sbi_hartmask.h index 200ab6e5..da6821ee 100644 --- a/include/sbi/sbi_hartmask.h +++ b/include/sbi/sbi_hartmask.h @@ -20,7 +20,11 @@ * also represents the maximum number of HART ids generic OpenSBI * can handle. */ +#ifdef CONFIG_HARTMASK_MAX_BITS +#define SBI_HARTMASK_MAX_BITS CONFIG_HARTMASK_MAX_BITS +#else #define SBI_HARTMASK_MAX_BITS 128 +#endif /** Representation of hartmask */ struct sbi_hartmask { |
