]> git.hungrycats.org Git - linux/commit
[PATCH] fix Summit srat.h includes
authorAndrew Morton <akpm@osdl.org>
Tue, 9 Sep 2003 17:21:22 +0000 (10:21 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 9 Sep 2003 17:21:22 +0000 (10:21 -0700)
commite623ce480984d2df3f6d4b7c6f054cdd3bc4f968
tree21de0b1a3ee8e15f400538a1e50bfc8725746907
parent5ee6ddc20c08ce4cc6cb98711d214bae1889b790
[PATCH] fix Summit srat.h includes

From: Dave Hansen <haveblue@us.ibm.com>

I was compiling for my plain 'ol PC, and was getting unresolved symbols
for get_memcfg_from_srat() and get_zholes_size().  The CONFIG_NUMA
definition right now allows it to be turned on for plain old X86_PC.
Does anyone know why this is?

depends on SMP && HIGHMEM64G &&
          (X86_PC || X86_NUMAQ || X86_GENERICARCH ||
                  (X86_SUMMIT && ACPI && !ACPI_HT_ONLY))

In any case, the summit code incorrectly assumes in at least 2 places
that NUMA && !NUMAQ means summit.  Someone was evidently trying to cover
the generic subarch case, but that's already taken care of by the lovely
config system and CONFIG_ACPI_SRAT.  This patch fixes those assumptions
and adds a nice little warning for people that try to #include srat.h
without having srat support turned on.
include/asm-i386/mmzone.h
include/asm-i386/numnodes.h
include/asm-i386/srat.h