mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-12 19:46:50 +07:00
9332fccded
Impact: Reduce memory usage. This is the second half of the changes to make the irq_desc_ptrs be variable sized based on nr_cpu_ids. This is done by adding a new "max_nr_irqs" macro to irq_vectors.h (and a dummy in irqnr.h) to return a max NR_IRQS value based on NR_CPUS or nr_cpu_ids. This necessitated moving the define of MAX_IO_APICS to a separate file (asm/apicnum.h) so it could be included without the baggage of the other asm/apicdef.h declarations. Signed-off-by: Mike Travis <travis@sgi.com>
13 lines
229 B
C
13 lines
229 B
C
#ifndef _ASM_X86_APICNUM_H
|
|
#define _ASM_X86_APICNUM_H
|
|
|
|
/* define MAX_IO_APICS */
|
|
#ifdef CONFIG_X86_32
|
|
# define MAX_IO_APICS 64
|
|
#else
|
|
# define MAX_IO_APICS 128
|
|
# define MAX_LOCAL_APIC 32768
|
|
#endif
|
|
|
|
#endif /* _ASM_X86_APICNUM_H */
|