diff options
author | Bob Liu <lliubbo@gmail.com> | 2011-12-12 11:04:05 +0800 |
---|---|---|
committer | Bob Liu <lliubbo@gmail.com> | 2012-01-09 10:26:15 +0800 |
commit | d0014be47dc90d15adf7d6e09031d06e2aa7ce79 (patch) | |
tree | 1f633a783e6536a0e24ad0453533882dc21ca1bd /arch/blackfin/include | |
parent | 16df3666f43507a6d21e192dae39b69cafc17089 (diff) | |
download | linux-3.10-d0014be47dc90d15adf7d6e09031d06e2aa7ce79.tar.gz linux-3.10-d0014be47dc90d15adf7d6e09031d06e2aa7ce79.tar.bz2 linux-3.10-d0014be47dc90d15adf7d6e09031d06e2aa7ce79.zip |
blackfin: smp: cleanup smp code
move idle task point to percpu blackfin_cpudata and add smp_timer_broadcast
interface.
enable SUPPLE_1_WAKEUP and add BFIN_IPI_TIMER ipi support.
Signed-off-by: Steven Miao <realmz6@gmail.com>
Signed-off-by: Bob Liu <lliubbo@gmail.com>
Diffstat (limited to 'arch/blackfin/include')
-rw-r--r-- | arch/blackfin/include/asm/cpu.h | 3 | ||||
-rw-r--r-- | arch/blackfin/include/asm/smp.h | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/arch/blackfin/include/asm/cpu.h b/arch/blackfin/include/asm/cpu.h index 05043786da2..e349631c829 100644 --- a/arch/blackfin/include/asm/cpu.h +++ b/arch/blackfin/include/asm/cpu.h @@ -14,6 +14,9 @@ struct blackfin_cpudata { struct cpu cpu; unsigned int imemctl; unsigned int dmemctl; +#ifdef CONFIG_SMP + struct task_struct *idle; +#endif }; DECLARE_PER_CPU(struct blackfin_cpudata, cpu_data); diff --git a/arch/blackfin/include/asm/smp.h b/arch/blackfin/include/asm/smp.h index af6c0aa79ba..dc3d144b4bb 100644 --- a/arch/blackfin/include/asm/smp.h +++ b/arch/blackfin/include/asm/smp.h @@ -37,7 +37,7 @@ extern unsigned long dcache_invld_count[NR_CPUS]; #endif void smp_icache_flush_range_others(unsigned long start, - unsigned long end); + unsigned long end); #ifdef CONFIG_HOTPLUG_CPU void coreb_die(void); void cpu_die(void); @@ -46,4 +46,7 @@ int __cpu_disable(void); int __cpu_die(unsigned int cpu); #endif +void smp_timer_broadcast(const struct cpumask *mask); + + #endif /* !__ASM_BLACKFIN_SMP_H */ |