Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 108737
b: refs/heads/master
c: d19fbfd
h: refs/heads/master
i:
  108735: 11399d1
v: v3
  • Loading branch information
Marcin Slusarz authored and Ingo Molnar committed Aug 18, 2008
1 parent 2b5703c commit e65078d
Show file tree
Hide file tree
Showing 2 changed files with 10 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: c6a92a2501b35880d2e357dbd7f2cbc9a06f1058
refs/heads/master: d19fbfdfe6a7034c8b6a7062365780485ab5aeaa
11 changes: 9 additions & 2 deletions trunk/arch/x86/kernel/smpboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,14 @@ static void __cpuinit do_fork_idle(struct work_struct *work)
}

#ifdef CONFIG_X86_64

/* __ref because it's safe to call free_bootmem when after_bootmem == 0. */
static void __ref free_bootmem_pda(struct x8664_pda *oldpda)
{
if (!after_bootmem)
free_bootmem((unsigned long)oldpda, sizeof(*oldpda));
}

/*
* Allocate node local memory for the AP pda.
*
Expand Down Expand Up @@ -784,8 +792,7 @@ int __cpuinit get_local_pda(int cpu)

if (oldpda) {
memcpy(newpda, oldpda, size);
if (!after_bootmem)
free_bootmem((unsigned long)oldpda, size);
free_bootmem_pda(oldpda);
}

newpda->in_bootmem = 0;
Expand Down

0 comments on commit e65078d

Please sign in to comment.