~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to arch/arm/mach-omap2/omap-smp.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#include <linux/io.h>
22
22
 
23
23
#include <asm/cacheflush.h>
 
24
#include <asm/hardware/gic.h>
24
25
#include <asm/smp_scu.h>
25
26
#include <mach/hardware.h>
26
27
#include <mach/omap4-common.h>
30
31
 
31
32
static DEFINE_SPINLOCK(boot_lock);
32
33
 
 
34
 
 
35
void __iomem *omap4_get_scu_base(void)
 
36
{
 
37
        return scu_base;
 
38
}
 
39
 
33
40
void __cpuinit platform_secondary_init(unsigned int cpu)
34
41
{
35
42
        /*
63
70
        omap_modify_auxcoreboot0(0x200, 0xfffffdff);
64
71
        flush_cache_all();
65
72
        smp_wmb();
66
 
        smp_cross_call(cpumask_of(cpu), 1);
67
73
 
68
74
        /*
69
75
         * Now the secondary core is starting up let it run its
118
124
 
119
125
        for (i = 0; i < ncores; i++)
120
126
                set_cpu_possible(i, true);
 
127
 
 
128
        set_smp_cross_call(gic_raise_softirq);
121
129
}
122
130
 
123
131
void __init platform_smp_prepare_cpus(unsigned int max_cpus)