powerpc/cpufreq: Add pr_warn() on OPAL firmware failures
authorVaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
Sun, 3 Aug 2014 09:24:05 +0000 (14:54 +0530)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 5 Aug 2014 05:40:41 +0000 (15:40 +1000)
commit6174bac8c7ff73a86ae9a967d1c9cadc478023ae
treea5ac87e70111d42797dc6aa68eb61e3a4cfa6177
parentb00fc6ec1f24f9d7af9b8988b6a198186eb3408c
powerpc/cpufreq: Add pr_warn() on OPAL firmware failures

Cpufreq depends on platform firmware to implement PStates.  In case of
platform firmware failure, cpufreq should not panic host kernel with
BUG_ON().  Less severe pr_warn() will suffice.

Add firmware_has_feature(FW_FEATURE_OPALv3) check to
skip probing for device-tree on non-powernv platforms.

Signed-off-by: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
Acked-by: Gautham R. Shenoy <ego@linux.vnet.ibm.com>
CC: <stable@vger.kernel.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
drivers/cpufreq/powernv-cpufreq.c