]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/eeh: Refactor report functions
authorSam Bobroff <sbobroff@linux.ibm.com>
Fri, 25 May 2018 03:11:40 +0000 (13:11 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 3 Jun 2018 10:43:41 +0000 (20:43 +1000)
commitbdfb010d2ac0d16783948de17d8f9fe681beb7ab
tree99613c89826adf573ad55210159af0607b5ec3b5
parentfc5f5ba69ee7152231959c21d249d8d10c320d7c
powerpc/eeh: Refactor report functions

The EEH report functions now share a fair bit of code around the start
and end of each function.

So factor out as much as possible, and move the traversal into a
custom function. This also allows accurate debug to be generated more
easily.

Signed-off-by: Sam Bobroff <sbobroff@linux.ibm.com>
[mpe: Format with clang-format]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/eeh_driver.c