• Mike Rapoport's avatar
    m68k/mm: make node data and node setup depend on CONFIG_DISCONTIGMEM · 6b2ad8d7
    Mike Rapoport authored
    The pg_data_t node structures and their initialization currently depends on
    !CONFIG_SINGLE_MEMORY_CHUNK. Since they are required only for DISCONTIGMEM
    make this dependency explicit and replace usage of
    CONFIG_SINGLE_MEMORY_CHUNK with CONFIG_DISCONTIGMEM where appropriate.
    
    The CONFIG_SINGLE_MEMORY_CHUNK was implicitly disabled on the ColdFire MMU
    variant, although it always presumed a single memory bank. As there is no
    actual need for DISCONTIGMEM in this case, make sure that ColdFire MMU
    systems set CONFIG_SINGLE_MEMORY_CHUNK to 'y'.
    
    Link: https://lkml.kernel.org/r/20201101170454.9567-12-rppt@kernel.orgSigned-off-by: default avatarMike Rapoport <rppt@linux.ibm.com>
    Cc: Alexey Dobriyan <adobriyan@gmail.com>
    Cc: Catalin Marinas <catalin.marinas@arm.com>
    Cc: Geert Uytterhoeven <geert@linux-m68k.org>
    Cc: Greg Ungerer <gerg@linux-m68k.org>
    Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
    Cc: Jonathan Corbet <corbet@lwn.net>
    Cc: Matt Turner <mattst88@gmail.com>
    Cc: Meelis Roos <mroos@linux.ee>
    Cc: Michael Schmitz <schmitzmic@gmail.com>
    Cc: Russell King <linux@armlinux.org.uk>
    Cc: Tony Luck <tony.luck@intel.com>
    Cc: Vineet Gupta <vgupta@synopsys.com>
    Cc: Will Deacon <will@kernel.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    6b2ad8d7
page_mm.h 4.06 KB