Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 247896
b: refs/heads/master
c: 9c2853a
h: refs/heads/master
v: v3
  • Loading branch information
Sam Ravnborg authored and David S. Miller committed Apr 21, 2011
1 parent d44fb39 commit 9f3b1dd
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 14 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: cb1b8209815594613650772eeb889c170107dad4
refs/heads/master: 9c2853af1fcbe01a123d666aa373e99119148ee6
1 change: 0 additions & 1 deletion trunk/arch/sparc/include/asm/leon.h
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,6 @@ extern void leon_smp_done(void);
extern void leon_boot_cpus(void);
extern int leon_boot_one_cpu(int i);
void leon_init_smp(void);
extern void cpu_probe(void);
extern void cpu_idle(void);
extern void init_IRQ(void);
extern void cpu_panic(void);
Expand Down
12 changes: 8 additions & 4 deletions trunk/arch/sparc/kernel/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ static const char *sparc_fpu_type;
const char *sparc_pmu_type;


static void set_cpu_and_fpu(int psr_impl, int psr_vers, int fpu_vers)
static void __init set_cpu_and_fpu(int psr_impl, int psr_vers, int fpu_vers)
{
const struct manufacturer_info *manuf;
int i;
Expand Down Expand Up @@ -434,7 +434,7 @@ const struct seq_operations cpuinfo_op = {
};

#ifdef CONFIG_SPARC32
void __cpuinit cpu_probe(void)
static int __init cpu_type_probe(void)
{
int psr_impl, psr_vers, fpu_vers;
int psr;
Expand All @@ -453,8 +453,12 @@ void __cpuinit cpu_probe(void)
put_psr(psr);

set_cpu_and_fpu(psr_impl, psr_vers, fpu_vers);

return 0;
}
#else
#endif /* CONFIG_SPARC32 */

#ifdef CONFIG_SPARC64
static void __init sun4v_cpu_probe(void)
{
switch (sun4v_chip_type) {
Expand Down Expand Up @@ -495,6 +499,6 @@ static int __init cpu_type_probe(void)
}
return 0;
}
#endif /* CONFIG_SPARC64 */

early_initcall(cpu_type_probe);
#endif
2 changes: 0 additions & 2 deletions trunk/arch/sparc/kernel/devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include <asm/system.h>
#include <asm/cpudata.h>

extern void cpu_probe(void);
extern void clock_stop_probe(void); /* tadpole.c */
extern void sun4c_probe_memerr_reg(void);

Expand Down Expand Up @@ -133,7 +132,6 @@ void __init device_scan(void)
}
#endif /* !CONFIG_SMP */

cpu_probe();
{
extern void auxio_probe(void);
extern void auxio_power_probe(void);
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/sparc/kernel/leon_smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ void __cpuinit leon_callin(void)
local_flush_cache_all();
local_flush_tlb_all();

cpu_probe();

/* Fix idle thread fields. */
__asm__ __volatile__("ld [%0], %%g6\n\t" : : "r"(&current_set[cpuid])
: "memory" /* paranoid */);
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/sparc/kernel/sun4d_smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ void __cpuinit smp4d_callin(void)
local_flush_cache_all();
local_flush_tlb_all();

cpu_probe();

while ((unsigned long)current_set[cpuid] < PAGE_OFFSET)
barrier();

Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/sparc/kernel/sun4m_smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ void __cpuinit smp4m_callin(void)
local_flush_cache_all();
local_flush_tlb_all();

cpu_probe();

/* Fix idle thread fields. */
__asm__ __volatile__("ld [%0], %%g6\n\t"
: : "r" (&current_set[cpuid])
Expand Down

0 comments on commit 9f3b1dd

Please sign in to comment.