Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 356519
b: refs/heads/master
c: bbcab87
h: refs/heads/master
i:
  356517: e6b9709
  356515: e29fd0c
  356511: 85254c7
v: v3
  • Loading branch information
Tang Chen authored and Linus Torvalds committed Feb 24, 2013
1 parent dabe123 commit 257083a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ae9aae9eda2db71bf4b592f15618b0160eb07731
refs/heads/master: bbcab8789d4a5b942773aa7496794ceebe2d3f78
10 changes: 10 additions & 0 deletions trunk/arch/x86/mm/init_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -1011,6 +1011,15 @@ remove_pagetable(unsigned long start, unsigned long end, bool direct)
flush_tlb_all();
}

static void __meminit
kernel_physical_mapping_remove(unsigned long start, unsigned long end)
{
start = (unsigned long)__va(start);
end = (unsigned long)__va(end);

remove_pagetable(start, end, true);
}

#ifdef CONFIG_MEMORY_HOTREMOVE
int __ref arch_remove_memory(u64 start, u64 size)
{
Expand All @@ -1020,6 +1029,7 @@ int __ref arch_remove_memory(u64 start, u64 size)
int ret;

zone = page_zone(pfn_to_page(start_pfn));
kernel_physical_mapping_remove(start, start + size);
ret = __remove_pages(zone, start_pfn, nr_pages);
WARN_ON_ONCE(ret);

Expand Down

0 comments on commit 257083a

Please sign in to comment.