OSDN Git Service

powerpc/eeh: Introduce eeh_edev_actionable()
authorSam Bobroff <sbobroff@linux.ibm.com>
Fri, 25 May 2018 03:11:36 +0000 (13:11 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 3 Jun 2018 10:43:40 +0000 (20:43 +1000)
commite2b810d51b2b36d41e3e5522e12cc752e0d865ec
tree38e971c7c50cbced656c5a5c510c1d2590a6c6bf
parent309ed3a7157a50edeeddfe49bd527a7347f76237
powerpc/eeh: Introduce eeh_edev_actionable()

The same test is done in every EEH report function, so factor it out.

Since eeh_dev_removed() needs to be moved higher up in the file,
simplify it a little while we're at it.

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