powerpc/pseries/eeh: Refactor the configure_bridge RTAS tokens
authorRussell Currey <ruscur@russell.cc>
Thu, 7 Apr 2016 06:28:27 +0000 (16:28 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 30 May 2016 03:50:12 +0000 (13:50 +1000)
commitbd000b82e86503d5e8b9e6d40a3257bc9dddb96d
treefd88f933c40831cef8ddd2cca40f7e6c6934c8b5
parent871e178e0f2c4fa788f694721a10b4758d494ce1
powerpc/pseries/eeh: Refactor the configure_bridge RTAS tokens

The RTAS calls "ibm,configure-pe" and "ibm,configure-bridge" perform the
same actions, however the former can skip configuration if unnecessary.
The existing code treats them as different tokens even though only one
will ever be called.  Refactor this by making a single token that is
assigned during init.

Signed-off-by: Russell Currey <ruscur@russell.cc>
Acked-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/pseries/eeh_pseries.c