summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorMeador Inge2011-03-14 11:01:07 +0100
committerBenjamin Herrenschmidt2011-03-21 01:01:32 +0100
commitd6a2639b887fcf90b422caccca4aee216bd1120e (patch)
treeca3a72a579fbc05a24726aba89a162b990d6a235 /arch/powerpc/include
parentpowerpc: Make MPIC honor the "pic-no-reset" device tree property (diff)
downloadkernel-qcow2-linux-d6a2639b887fcf90b422caccca4aee216bd1120e.tar.gz
kernel-qcow2-linux-d6a2639b887fcf90b422caccca4aee216bd1120e.tar.xz
kernel-qcow2-linux-d6a2639b887fcf90b422caccca4aee216bd1120e.zip
powerpc: Factoring mpic cpu id fetching into a function
The following code snippet: unsigned int cpu = 0; if (mpic->flags & MPIC_PRIMARY) cpu = hard_smp_processor_id(); is seen in several places in the 'mpic.c' code. This changeset factors that pattern out into a helper function called 'mpic_processor_id'. Signed-off-by: Meador Inge <meador_inge@mentor.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include')
0 files changed, 0 insertions, 0 deletions