[PATCH v4 06/15] ARM: mcpm: generic SMP secondary bringup and hotplug support
Russell King - ARM Linux
linux at arm.linux.org.uk
Tue Apr 23 15:31:22 EDT 2013
On Tue, Feb 05, 2013 at 12:22:03AM -0500, Nicolas Pitre wrote:
> +static void mcpm_cpu_die(unsigned int cpu)
> +{
> + unsigned int mpidr, pcpu, pcluster;
> + mpidr = read_cpuid_mpidr();
> + pcpu = MPIDR_AFFINITY_LEVEL(mpidr, 0);
> + pcluster = MPIDR_AFFINITY_LEVEL(mpidr, 1);
> + mcpm_set_entry_vector(pcpu, pcluster, NULL);
> + mcpm_cpu_power_down();
How are dirty caches handled here for the dying CPU? Bear in mind at the
moment, all that is left to the smp platform implementation, but I don't
see anything in your patch set so far which handles this.
This is going to be especially important as we're moving that into the
generic CPU hotplug code out of the platform code.
More information about the linux-arm-kernel
mailing list