diff options
author | Soren Brinkmann <soren.brinkmann@xilinx.com> | 2014-09-02 14:19:12 -0700 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2014-09-16 12:55:09 +0200 |
commit | 50c7960a4517d6c93226351cd8c43c86f104c919 (patch) | |
tree | 354342e21f9dfc23fe2d0412f4df7dc3301e928e /arch/arm/mach-zynq/common.h | |
parent | 18aebf116b494101841f109f07e0d6a0aad9a46e (diff) | |
download | talos-op-linux-50c7960a4517d6c93226351cd8c43c86f104c919.tar.gz talos-op-linux-50c7960a4517d6c93226351cd8c43c86f104c919.zip |
ARM: zynq: Synchronise zynq_cpu_die/kill
Avoid races and add synchronisation between the arch specific
kill and die routines.
The same synchronisation issue was fixed on IMX platform
by this commit:
"ARM: imx: fix sync issue between imx_cpu_die and imx_cpu_kill"
(sha1: 2f3edfd7e27ad4206acbc2ae99c9df5f46353024)
Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/arm/mach-zynq/common.h')
-rw-r--r-- | arch/arm/mach-zynq/common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-zynq/common.h b/arch/arm/mach-zynq/common.h index 0edbb6997b1c..24d6340d3fb6 100644 --- a/arch/arm/mach-zynq/common.h +++ b/arch/arm/mach-zynq/common.h @@ -24,6 +24,8 @@ extern int zynq_early_slcr_init(void); extern void zynq_slcr_system_reset(void); extern void zynq_slcr_cpu_stop(int cpu); extern void zynq_slcr_cpu_start(int cpu); +extern bool zynq_slcr_cpu_state_read(int cpu); +extern void zynq_slcr_cpu_state_write(int cpu, bool die); extern u32 zynq_slcr_get_device_id(void); #ifdef CONFIG_SMP |