]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mips: fix HIGHMEM initialization
authorMike Rapoport (Microsoft) <rppt@kernel.org>
Wed, 31 Dec 2025 10:57:01 +0000 (12:57 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 15 Jan 2026 06:16:22 +0000 (22:16 -0800)
commitf171b55f1441294344b86edfeaa575ea9673fd23
tree51f11e2b5c5db759c5bb2cc7bb8dc4657dafe926
parentb02019169284df8f4ce972a60da31d28bd5b5979
mips: fix HIGHMEM initialization

Commit 6faea3422e3b ("arch, mm: streamline HIGHMEM freeing") overzealously
removed mem_init_free_highmem() function that beside freeing high memory
pages checked for CPU support for high memory as a prerequisite.

Partially restore mem_init_free_highmem() with a new highmem_init() name
and make it discard high memory in case there is no CPU support for it.

Link: https://lkml.kernel.org/r/20251231105701.519711-1-rppt@kernel.org
Fixes: 6faea3422e3b ("arch, mm: streamline HIGHMEM freeing")
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Reported-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Cc: Chris Packham <chris.packham@alliedtelesis.co.nz>
Cc: Hauke Mehrtens <hauke@hauke-m.de>
Cc: Jonas Jelonek <jelonek.jonas@gmail.com>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: Thomas Gleinxer <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/mips/mm/init.c