mirror of https://gitee.com/openkylin/linux.git
ARM: mach-shmobile: Allow SoC specific CPU kill code
Add the function shmobile_platform_kill_cpu() to allow SoC specific code to tie in their CPU shutdown code. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
parent
f0eab3889e
commit
8b30679699
|
@ -12,10 +12,11 @@
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
#include <linux/errno.h>
|
#include <linux/errno.h>
|
||||||
#include <linux/smp.h>
|
#include <linux/smp.h>
|
||||||
|
#include <mach/common.h>
|
||||||
|
|
||||||
int platform_cpu_kill(unsigned int cpu)
|
int platform_cpu_kill(unsigned int cpu)
|
||||||
{
|
{
|
||||||
return 1;
|
return shmobile_platform_cpu_kill(cpu);
|
||||||
}
|
}
|
||||||
|
|
||||||
void platform_cpu_die(unsigned int cpu)
|
void platform_cpu_die(unsigned int cpu)
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
extern struct sys_timer shmobile_timer;
|
extern struct sys_timer shmobile_timer;
|
||||||
extern void shmobile_setup_console(void);
|
extern void shmobile_setup_console(void);
|
||||||
extern void shmobile_secondary_vector(void);
|
extern void shmobile_secondary_vector(void);
|
||||||
|
extern int shmobile_platform_cpu_kill(unsigned int cpu);
|
||||||
struct clk;
|
struct clk;
|
||||||
extern int clk_init(void);
|
extern int clk_init(void);
|
||||||
extern void shmobile_handle_irq_intc(struct pt_regs *);
|
extern void shmobile_handle_irq_intc(struct pt_regs *);
|
||||||
|
|
|
@ -37,6 +37,11 @@ static void __init shmobile_smp_prepare_cpus(void)
|
||||||
sh73a0_smp_prepare_cpus();
|
sh73a0_smp_prepare_cpus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int shmobile_platform_cpu_kill(unsigned int cpu)
|
||||||
|
{
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
void __cpuinit platform_secondary_init(unsigned int cpu)
|
void __cpuinit platform_secondary_init(unsigned int cpu)
|
||||||
{
|
{
|
||||||
trace_hardirqs_off();
|
trace_hardirqs_off();
|
||||||
|
|
Loading…
Reference in New Issue