arm: zynq: platsmp: Remove CPU presence check
authorSoren Brinkmann <soren.brinkmann@xilinx.com>
Thu, 31 Oct 2013 17:37:09 +0000 (10:37 -0700)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 10 Dec 2013 13:17:53 +0000 (14:17 +0100)
The generic code already checks that the CPU being requested is legal if
the cpu possible/present masks are set correctly.

Cc: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/mach-zynq/platsmp.c

index 689fbbc3d9c8860347f42f60c00c01f41c0a091a..03a62d5df8f43deb7d5eeee0527560bbeb39c42e 100644 (file)
@@ -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))) {
This page took 0.028625 seconds and 5 git commands to generate.