diff options
author | Zhangfei Gao | 2013-12-11 08:54:55 +0100 |
---|---|---|
committer | Kevin Hilman | 2013-12-18 01:43:34 +0100 |
commit | 22bae429045759a05df0e1eefc61c4163b10017c (patch) | |
tree | 8442d98613fe79baf827753f4941d1edfa856ed2 /arch/arm/mach-hi3xxx/core.h | |
parent | ARM: hi3xxx: add smp support (diff) | |
download | kernel-qcow2-linux-22bae429045759a05df0e1eefc61c4163b10017c.tar.gz kernel-qcow2-linux-22bae429045759a05df0e1eefc61c4163b10017c.tar.xz kernel-qcow2-linux-22bae429045759a05df0e1eefc61c4163b10017c.zip |
ARM: hi3xxx: add hotplug support
Enable hotplug support on hi3xxx platform
How to test:
cat proc/interrupts
echo 0 > /sys/devices/system/cpu/cpuX/online
cat proc/interrupts
echo 1 > /sys/devices/system/cpu/cpuX/online
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Tested-by: Zhang Mingjun <zhang.mingjun@linaro.org>
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
[khilman: fixed checkpatch error]
Signed-off-by: Kevin Hilman <khilman@linaro.org>
Diffstat (limited to 'arch/arm/mach-hi3xxx/core.h')
-rw-r--r-- | arch/arm/mach-hi3xxx/core.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-hi3xxx/core.h b/arch/arm/mach-hi3xxx/core.h index 226f02050597..af23ec204538 100644 --- a/arch/arm/mach-hi3xxx/core.h +++ b/arch/arm/mach-hi3xxx/core.h @@ -8,4 +8,8 @@ extern int hi3xxx_get_cpu_jump(int cpu); extern void secondary_startup(void); extern struct smp_operations hi3xxx_smp_ops; +extern void hi3xxx_cpu_die(unsigned int cpu); +extern int hi3xxx_cpu_kill(unsigned int cpu); +extern void hi3xxx_set_cpu(int cpu, bool enable); + #endif |