Re: x86_64: MAX_LOCAL_APIC way too big?

From: Ingo Molnar
Date: Sat Sep 26 2015 - 02:08:45 EST



* Denys Vlasenko <dvlasenk@xxxxxxxxxx> wrote:

> For 64-bit kernels, MAX_LOCAL_APIC is 32k:
>
> #ifdef CONFIG_X86_32
> ...
> #else
> # define MAX_IO_APICS 128
> # define MAX_LOCAL_APIC 32768
> #endif
>
> (It seems to be a bit of a misnomer, it's not a maximum
> number of APICs we support, it's the highest APIC _id_
> we support.)

Gah, that's a pretty serious misnomer - so it should be fixed regardless of
the outcome of the sizing discussion.

Thanks,

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/