Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 151167
b: refs/heads/master
c: 73fffc0
h: refs/heads/master
i:
  151165: cebf9ed
  151163: bd7f01f
  151159: 7169832
  151151: 95afce6
  151135: 51dfa27
  151103: a924ac7
  151039: ff9da0c
v: v3
  • Loading branch information
David S. Miller committed Jun 16, 2009
1 parent 83dc93f commit 4fe9271
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 18 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: b696fdc259f0d94348a9327bed352fac44d4883d
refs/heads/master: 73fffc037e2383a0ed126d57bdcda9b369769ae8
4 changes: 0 additions & 4 deletions trunk/arch/sparc/include/asm/percpu_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ register unsigned long __local_per_cpu_offset asm("g5");

#include <asm/trap_block.h>

extern void real_setup_per_cpu_areas(void);

#define __per_cpu_offset(__cpu) \
(trap_block[(__cpu)].__per_cpu_base)
#define per_cpu_offset(x) (__per_cpu_offset(x))
Expand All @@ -19,8 +17,6 @@ extern void real_setup_per_cpu_areas(void);

#else /* ! SMP */

#define real_setup_per_cpu_areas() do { } while (0)

#endif /* SMP */

#include <asm-generic/percpu.h>
Expand Down
11 changes: 5 additions & 6 deletions trunk/arch/sparc/kernel/smp_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <linux/cache.h>
#include <linux/jiffies.h>
#include <linux/profile.h>
#include <linux/lmb.h>
#include <linux/bootmem.h>
#include <linux/cpu.h>

#include <asm/head.h>
Expand Down Expand Up @@ -1371,9 +1371,9 @@ void smp_send_stop(void)
{
}

void __init real_setup_per_cpu_areas(void)
void __init setup_per_cpu_areas(void)
{
unsigned long base, shift, paddr, goal, size, i;
unsigned long base, shift, goal, size, i;
char *ptr;

/* Copy section for each CPU (we discard the original) */
Expand All @@ -1383,13 +1383,12 @@ void __init real_setup_per_cpu_areas(void)
for (size = PAGE_SIZE; size < goal; size <<= 1UL)
shift++;

paddr = lmb_alloc(size * NR_CPUS, PAGE_SIZE);
if (!paddr) {
ptr = __alloc_bootmem(size * NR_CPUS, PAGE_SIZE, 0);
if (!ptr) {
prom_printf("Cannot allocate per-cpu memory.\n");
prom_halt();
}

ptr = __va(paddr);
base = ptr - __per_cpu_start;

for (i = 0; i < NR_CPUS; i++, ptr += size) {
Expand Down
7 changes: 0 additions & 7 deletions trunk/arch/sparc/mm/init_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -1679,11 +1679,6 @@ pgd_t swapper_pg_dir[2048];
static void sun4u_pgprot_init(void);
static void sun4v_pgprot_init(void);

/* Dummy function */
void __init setup_per_cpu_areas(void)
{
}

void __init paging_init(void)
{
unsigned long end_pfn, shift, phys_base;
Expand Down Expand Up @@ -1807,8 +1802,6 @@ void __init paging_init(void)
mdesc_populate_present_mask(CPU_MASK_ALL_PTR);
}

real_setup_per_cpu_areas();

/* Once the OF device tree and MDESC have been setup, we know
* the list of possible cpus. Therefore we can allocate the
* IRQ stacks.
Expand Down

0 comments on commit 4fe9271

Please sign in to comment.