]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit72cced2b8260f7cd5f413d730257490d39462e28
tree938ae6764ab951385dfa1ba814e4c24611de409a
parent33de839452d243efa7706e50044788b9c2c92992
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