]> git.karo-electronics.de Git - linux-beck.git/commit
ARM: vexpress: remove redundant vexpress_dt_cpus_num to get cpu count
authorSudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>
Tue, 23 Jul 2013 11:32:41 +0000 (12:32 +0100)
committerPawel Moll <pawel.moll@arm.com>
Thu, 15 May 2014 16:02:21 +0000 (17:02 +0100)
commitdcdea6295d3b2ec1aafd8480860f34062d2d3a93
tree37e3fb6bbda7d570982a6953313ab7bfee167783
parent220e2a8d22cd57d5ec8111465923c6c25691394d
ARM: vexpress: remove redundant vexpress_dt_cpus_num to get cpu count

arm_dt_init_cpu_maps parses the device tree, validates and sets the
cpu_possible_mask appropriately. It is unnecessary to do another DT
parse to get the number of cpus, use num_possible_cpus instead.

This patch also removes setting cpu_present_mask as platforms should
only re-initialize it in smp_prepare_cpus() if present != possible.

Signed-off-by: Sudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
arch/arm/mach-vexpress/platsmp.c