Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0f354869 authored by Jiang Liu's avatar Jiang Liu Committed by Linus Torvalds
Browse files

mm/MIPS: use free_highmem_page() to free highmem pages into buddy system



Use helper function free_highmem_page() to free highmem pages into
the buddy system.

Signed-off-by: default avatarJiang Liu <jiang.liu@huawei.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: David Daney <david.daney@cavium.com>
Cc: Cong Wang <amwang@redhat.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent ec601a34
Loading
Loading
Loading
Loading
+1 −5
Original line number Original line Diff line number Diff line
@@ -393,12 +393,8 @@ void __init mem_init(void)
			SetPageReserved(page);
			SetPageReserved(page);
			continue;
			continue;
		}
		}
		ClearPageReserved(page);
		free_highmem_page(page);
		init_page_count(page);
		__free_page(page);
		totalhigh_pages++;
	}
	}
	totalram_pages += totalhigh_pages;
	num_physpages += totalhigh_pages;
	num_physpages += totalhigh_pages;
#endif
#endif