ARM: kernel: provide cluster to logical cpu mask mapping API
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 10 Sep 2012 15:06:30 +0000 (16:06 +0100)
committerJon Medhurst <tixy@linaro.org>
Wed, 17 Jul 2013 10:12:03 +0000 (11:12 +0100)
commit366001345f62d151aa95499fa4ed49f7d952b253
tree121bc21f3a0640ea9c6e76749efd70e3a25cfadf
parent8bb495e3f02401ee6f76d1b1d77f3ac9f079e376
ARM: kernel: provide cluster to logical cpu mask mapping API

Some device drivers like PMU require to retrieve the logical cpu mask
that corresponds to a given cluster id. This patch provides a hook in
the topology code that, given an existing cluster id as input,
initializes the corresponding cpumask passed as a pointer, reusing all
existing topology information required by sched domains in the kernel.

Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
arch/arm/include/asm/topology.h
arch/arm/kernel/topology.c