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

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

mm/microblaze: 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: Michal Simek <monstr@monstr.eu>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent a564496e
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -82,13 +82,9 @@ static unsigned long highmem_setup(void)
		/* FIXME not sure about */
		if (memblock_is_reserved(pfn << PAGE_SHIFT))
			continue;
		ClearPageReserved(page);
		init_page_count(page);
		__free_page(page);
		totalhigh_pages++;
		free_highmem_page(page);
		reservedpages++;
	}
	totalram_pages += totalhigh_pages;
	pr_info("High memory: %luk\n",
					totalhigh_pages << (PAGE_SHIFT-10));