提交 a268cefe 编写于 作者: M Miles Bader 提交者: Linus Torvalds

[PATCH] v850: call init_page_count() instead of set_page_count()

Signed-off-by: NMiles Bader <miles@gnu.org>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 66f6b24b
/* /*
* arch/v850/kernel/setup.c -- Arch-dependent initialization functions * arch/v850/kernel/setup.c -- Arch-dependent initialization functions
* *
* Copyright (C) 2001,02,03,05 NEC Electronics Corporation * Copyright (C) 2001,02,03,05,06 NEC Electronics Corporation
* Copyright (C) 2001,02,03,05 Miles Bader <miles@gnu.org> * Copyright (C) 2001,02,03,05,06 Miles Bader <miles@gnu.org>
* *
* This file is subject to the terms and conditions of the GNU General * This file is subject to the terms and conditions of the GNU General
* Public License. See the file COPYING in the main directory of this * Public License. See the file COPYING in the main directory of this
...@@ -190,7 +190,7 @@ void free_initmem (void) ...@@ -190,7 +190,7 @@ void free_initmem (void)
for (addr = start; addr < end; addr += PAGE_SIZE) { for (addr = start; addr < end; addr += PAGE_SIZE) {
struct page *page = virt_to_page (addr); struct page *page = virt_to_page (addr);
ClearPageReserved (page); ClearPageReserved (page);
set_page_count (page, 1); init_page_count (page);
__free_page (page); __free_page (page);
total_ram_pages++; total_ram_pages++;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册