[PATCH v4 06/15] ARM: mcpm: generic SMP secondary bringup and hotplug support
Nicolas Pitre
nicolas.pitre at linaro.org
Tue Apr 23 15:36:39 EDT 2013
On Tue, 23 Apr 2013, Russell King - ARM Linux wrote:
> 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.
The cache is handled in the machine specific backend accessed through
mcpm_cpu_power_down(). See the DCSCB related patches later in the
series.
Nicolas
More information about the linux-arm-kernel
mailing list