From: Meador Inge Date: Mon, 14 Mar 2011 10:01:07 +0000 (+0000) Subject: powerpc: Factoring mpic cpu id fetching into a function X-Git-Tag: v2.6.39-rc1~403^2~1 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6a2639b887fcf90b422caccca4aee216bd1120e;hp=d6a2639b887fcf90b422caccca4aee216bd1120e;p=pandora-kernel.git 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 Cc: Benjamin Herrenschmidt Signed-off-by: Benjamin Herrenschmidt ---