OSDN Git Service

powerpc/powernv: Split ioda_eeh_get_state()
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Mon, 21 Jul 2014 04:42:32 +0000 (14:42 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 5 Aug 2014 06:33:21 +0000 (16:33 +1000)
commitc979c70ed176518dfb32eaf8a7ac58f41ae21de1
tree938ae6764ab951385dfa1ba814e4c24611de409a
parent5ca27efbd8b4579ef1e54e6c0a4a73dbf7f56a4a
powerpc/powernv: Split ioda_eeh_get_state()

Function ioda_eeh_get_state() is used to fetch EEH state for PHB
or PE. We're going to support compound PE and the function becomes
more complicated with that. The patch splits the function into two
functions for PHB and PE cases separately to improve readability.

Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/powernv/eeh-ioda.c