ARM: mvebu: returns ll_get_cpuid() to ll_get_coherency_cpumask()
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 22 May 2014 12:48:02 +0000 (14:48 +0200)
committerJason Cooper <jason@lakedaemon.net>
Thu, 22 May 2014 14:26:30 +0000 (14:26 +0000)
commit07ae144be1b2ac45f893bc1ed3fe1a49f7128e46
tree271e791dfc9a65a130d9899e5eda2d2d5a0e5e1d
parent4dd1b7fa431d6b59022b3493312c6c1b52dbf547
ARM: mvebu: returns ll_get_cpuid() to ll_get_coherency_cpumask()

In the refactoring of the coherency fabric assembly code, a function
called ll_get_cpuid() was created to factorize common logic between
functions adding CPU to the SMP coherency group, enabling and
disabling the coherency.

However, the name of the function is highly misleading: ll_get_cpuid()
makes one think tat it returns the ID of the CPU, i.e 0 for CPU0, 1
for CPU1, etc. In fact, this is not at all what this function returns:
it returns a CPU mask for the current CPU, usable for the coherency
fabric configuration and control registers.

Therefore this commit renames this function to
ll_get_coherency_cpumask(), and adds additional comments on top of the
function to explain in more details what it does, and also how the
endianess issue is handled.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Link: https://lkml.kernel.org/r/1400762882-10116-5-git-send-email-thomas.petazzoni@free-electrons.com
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/mach-mvebu/coherency_ll.S