[PATCH] ARM: rockchip: Add cpu hotplug support for RK3XXX SoCs

Russell King - ARM Linux linux at arm.linux.org.uk
Thu Jul 17 15:14:36 PDT 2014


On Thu, Jul 17, 2014 at 05:11:50PM +0000, Romain Perier wrote:
> +static DECLARE_COMPLETION(cpu_died);
> +
> +static int rockchip_cpu_kill(unsigned int cpu)
> +{
> +	if (!wait_for_completion_timeout(&cpu_died, msecs_to_jiffies(1000))) {
> +		pr_err("CPU%d: didn't die correctly\n", cpu);
> +		return 0;
> +	}

Please explain the point of this cpu_died thing.

I think you should read arch/arm/kernel/smp.c, searching for cpu_died
in there.

-- 
FTTC broadband for 0.8mile line: currently at 9.5Mbps down 400kbps up
according to speedtest.net.



More information about the linux-arm-kernel mailing list