]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/eeh: Introduce eeh_for_each_pe()
authorSam Bobroff <sbobroff@linux.ibm.com>
Fri, 25 May 2018 03:11:35 +0000 (13:11 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 3 Jun 2018 10:43:39 +0000 (20:43 +1000)
commit7a8b235aca6f6495489aa2218d573488a61e0a44
tree9f63c5bc31951af3196fa588537da7950b8a3338
parent36f19154edf6e89d28a292ef9f5642a8fab560c1
powerpc/eeh: Introduce eeh_for_each_pe()

Add a for_each-style macro for iterating through PEs without the
boilerplate required by a traversal function. eeh_pe_next() is now
exported, as it is now used directly in place.

Signed-off-by: Sam Bobroff <sbobroff@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/eeh.h
arch/powerpc/kernel/eeh_pe.c