From: Soren Brinkmann Date: Thu, 31 Oct 2013 17:37:09 +0000 (-0700) Subject: arm: zynq: platsmp: Remove CPU presence check X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=11e031308ba660b31ffaf31f0295a2c1c358b574;p=linux-beck.git arm: zynq: platsmp: Remove CPU presence check The generic code already checks that the CPU being requested is legal if the cpu possible/present masks are set correctly. Cc: Russell King Signed-off-by: Soren Brinkmann Signed-off-by: Michal Simek --- diff --git a/arch/arm/mach-zynq/platsmp.c b/arch/arm/mach-zynq/platsmp.c index 689fbbc3d9c8..03a62d5df8f4 100644 --- a/arch/arm/mach-zynq/platsmp.c +++ b/arch/arm/mach-zynq/platsmp.c @@ -39,11 +39,6 @@ int zynq_cpun_start(u32 address, int cpu) u32 trampoline_code_size = &zynq_secondary_trampoline_end - &zynq_secondary_trampoline; - if (cpu > ncores) { - pr_warn("CPU No. is not available in the system\n"); - return -1; - } - /* MS: Expectation that SLCR are directly map and accessible */ /* Not possible to jump to non aligned address */ if (!(address & 3) && (!address || (address >= trampoline_code_size))) {