From: Nathan Fontenot Date: Wed, 24 Apr 2013 05:57:18 +0000 (+0000) Subject: powerpc/pseries: Update firmware_has_feature() to check architecture vector 5 bits X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~66^2~56 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0ff7eb483b4c9b24b83aa682c4f42db256f9bdb;p=pandora-kernel.git powerpc/pseries: Update firmware_has_feature() to check architecture vector 5 bits The firmware_has_feature() function makes it easy to check for supported features of the hypervisor. This patch extends the capability of firmware_has_feature() to include checking for specified bits in vector 5 of the architecture vector as reported in the device tree. As part of this the #defines used for the architecture vector are re-defined such that each option has the index into vector 5 and the feature bit encoded into it. This makes checking for architecture bits when initiating data for firmware_has_feature much easier. Signed-off-by: Nathan Fontenot Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed