Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 91487
b: refs/heads/master
c: 52db9b4
h: refs/heads/master
i:
  91485: 42db44c
  91483: 8b37c18
  91479: f6a119c
  91471: b787a61
  91455: 726bb4d
v: v3
  • Loading branch information
Badari Pulavarty authored and Paul Mackerras committed Apr 1, 2008
1 parent 65bade2 commit 1065a9f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3faac21546f5b213cda490d45fe5927d713e44f1
refs/heads/master: 52db9b44262754bad1b0456d27a862a46cc7f893
14 changes: 9 additions & 5 deletions trunk/arch/powerpc/mm/hash_utils_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ int htab_bolt_mapping(unsigned long vstart, unsigned long vend,
return ret < 0 ? ret : 0;
}

static void htab_remove_mapping(unsigned long vstart, unsigned long vend,
static int htab_remove_mapping(unsigned long vstart, unsigned long vend,
int psize, int ssize)
{
unsigned long vaddr;
Expand All @@ -202,12 +202,15 @@ static void htab_remove_mapping(unsigned long vstart, unsigned long vend,
step = 1 << shift;

if (!ppc_md.hpte_removebolted) {
printk("Sub-arch doesn't implement hpte_removebolted\n");
return;
printk(KERN_WARNING "Platform doesn't implement "
"hpte_removebolted\n");
return -EINVAL;
}

for (vaddr = vstart; vaddr < vend; vaddr += step)
ppc_md.hpte_removebolted(vaddr, psize, ssize);

return 0;
}

static int __init htab_dt_scan_seg_sizes(unsigned long node,
Expand Down Expand Up @@ -454,9 +457,10 @@ void create_section_mapping(unsigned long start, unsigned long end)
mmu_linear_psize, mmu_kernel_ssize));
}

void remove_section_mapping(unsigned long start, unsigned long end)
int remove_section_mapping(unsigned long start, unsigned long end)
{
htab_remove_mapping(start, end, mmu_linear_psize, mmu_kernel_ssize);
return htab_remove_mapping(start, end, mmu_linear_psize,
mmu_kernel_ssize);
}
#endif /* CONFIG_MEMORY_HOTPLUG */

Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-powerpc/sparsemem.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#ifdef CONFIG_MEMORY_HOTPLUG
extern void create_section_mapping(unsigned long start, unsigned long end);
extern void remove_section_mapping(unsigned long start, unsigned long end);
extern int remove_section_mapping(unsigned long start, unsigned long end);
#ifdef CONFIG_NUMA
extern int hot_add_scn_to_nid(unsigned long scn_addr);
#else
Expand Down

0 comments on commit 1065a9f

Please sign in to comment.