git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfec220
)
powerpc: Factoring mpic cpu id fetching into a function
author
Meador Inge
<meador_inge@mentor.com>
Mon, 14 Mar 2011 10:01:07 +0000
(10:01 +0000)
committer
Benjamin Herrenschmidt
<benh@kernel.crashing.org>
Mon, 21 Mar 2011 00:01:32 +0000
(11:01 +1100)
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>
arch/powerpc/sysdev/mpic.c
patch
|
blob
|
history
diff --cc
arch/powerpc/sysdev/mpic.c
Simple merge