diff options
author | Paul Burton <paul.burton@imgtec.com> | 2014-04-14 09:13:57 -0400 |
---|---|---|
committer | Paul Burton <paul.burton@imgtec.com> | 2014-05-28 11:20:31 -0400 |
commit | 1d8f1f5a780abe51257f7d2e33142f33d983a9ed (patch) | |
tree | 6f4be0e00ccd7e7c22c94222ea7da3521500560d /arch/mips/Kconfig | |
parent | 3179d37ee1ed602770a8b8ed975bd30faa85b4a3 (diff) |
MIPS: smp-cps: hotplug support
This patch adds support for offlining CPUs via hotplug when using the
CONFIG_MIPS_CPS SMP implementation. When a CPU is offlined one of 2
things will happen:
- If the CPU is part of a core which implements the MT ASE and there
is at least one other VPE online within that core then the VPE will
be halted by settings its TCHalt bit.
- Otherwise if supported the core will be powered down via the CPC.
- Otherwise the CPU will hang by executing an infinite loop.
Bringing CPUs back online is then a process of either clearing the
appropriate VPEs TCHalt bit or powering up the appropriate core via the
CPC. Throughout the process the struct core_boot_config vpe_mask field
must be maintained such that mips_cps_boot_vpes will start & stop the
correct VPEs.
Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Diffstat (limited to 'arch/mips/Kconfig')
-rw-r--r-- | arch/mips/Kconfig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index c79e6a4a0075..860a1e9e8d92 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig | |||
@@ -2059,9 +2059,11 @@ config MIPS_CPS | |||
2059 | depends on SYS_SUPPORTS_MIPS_CPS | 2059 | depends on SYS_SUPPORTS_MIPS_CPS |
2060 | select MIPS_CM | 2060 | select MIPS_CM |
2061 | select MIPS_CPC | 2061 | select MIPS_CPC |
2062 | select MIPS_CPS_PM if HOTPLUG_CPU | ||
2062 | select MIPS_GIC_IPI | 2063 | select MIPS_GIC_IPI |
2063 | select SMP | 2064 | select SMP |
2064 | select SYNC_R4K if (CEVT_R4K || CSRC_R4K) | 2065 | select SYNC_R4K if (CEVT_R4K || CSRC_R4K) |
2066 | select SYS_SUPPORTS_HOTPLUG_CPU | ||
2065 | select SYS_SUPPORTS_SMP | 2067 | select SYS_SUPPORTS_SMP |
2066 | select WEAK_ORDERING | 2068 | select WEAK_ORDERING |
2067 | help | 2069 | help |