powerpc/pseries: Allow firmware features to match partial strings
authorMichael Neuling <mikey@neuling.org>
Tue, 6 Nov 2012 14:49:15 +0000 (14:49 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 10 Jan 2013 03:43:46 +0000 (14:43 +1100)
commit2f1d4ea7bcd96d3796eba4087388bdb37322ee7a
treee0df566a4fa9aaa085bfb8c4a0a35b80adf5f813
parent1e18c17adf32b86474fd903071b0181de9334bd4
powerpc/pseries: Allow firmware features to match partial strings

This allows firmware_features_table names to add a '*' at the end so that only
partial strings are matched.

When a '*' is added, only upto the '*' is matched when setting firmware feature
bits.

This is useful for the matching best energy feature.

Signed-off-by: Michael Neuling <mikey@neuling.org>
cc: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
cc: Linux PPC dev <linuxppc-dev@ozlabs.org>
Reviewed-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/firmware.c