Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 212852
b: refs/heads/master
c: 0d35e16
h: refs/heads/master
v: v3
  • Loading branch information
Matthew McClintock authored and Benjamin Herrenschmidt committed Sep 2, 2010
1 parent 4180b41 commit ce72f95
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 86250b9d12caa1a3dee12a7cf638b7dd70eaadb6
refs/heads/master: 0d35e1620d2882d74faed90d9ac457bf6c7a0886
6 changes: 4 additions & 2 deletions trunk/arch/powerpc/mm/mmu_context_nohash.c
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ static int __cpuinit mmu_context_cpu_notify(struct notifier_block *self,
/* We don't touch CPU 0 map, it's allocated at aboot and kept
* around forever
*/
if (cpu == 0)
if (cpu == boot_cpuid)
return NOTIFY_OK;

switch (action) {
Expand Down Expand Up @@ -420,9 +420,11 @@ void __init mmu_context_init(void)
*/
context_map = alloc_bootmem(CTX_MAP_SIZE);
context_mm = alloc_bootmem(sizeof(void *) * (last_context + 1));
#ifndef CONFIG_SMP
stale_map[0] = alloc_bootmem(CTX_MAP_SIZE);
#else
stale_map[boot_cpuid] = alloc_bootmem(CTX_MAP_SIZE);

#ifdef CONFIG_SMP
register_cpu_notifier(&mmu_context_cpu_nb);
#endif

Expand Down

0 comments on commit ce72f95

Please sign in to comment.