From: Dave Martin Date: Wed, 13 Feb 2013 16:20:44 +0000 (+0000) Subject: ARM: bL_switcher: Add query interface to discover CPU affinities X-Git-Tag: v3.13-rc1~103^2~1^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d08e2e09042bd3f7ef66a35cb4bb92794ab26bb2;p=pandora-kernel.git ARM: bL_switcher: Add query interface to discover CPU affinities When the switcher is active, there is no straightforward way to figure out which logical CPU a given physical CPU maps to. This patch provides a function bL_switcher_get_logical_index(mpidr), which is analogous to get_logical_index(). This function returns the logical CPU on which the specified physical CPU is grouped (or -EINVAL if unknown). If the switcher is inactive or not present, -EUNATCH is returned instead. Signed-off-by: Dave Martin Signed-off-by: Nicolas Pitre --- Reading git-diff-tree failed