powerpc/powernv: only call OPAL_RESEND_DUMP if firmware supports it

Not all OPAL platforms support resending system dumps, so check
that current firmware supports it first. Otherwise we get firmware
complaining:
"OPAL: Called with bad token 91 !"

Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Acked-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
Stewart Smith 2015-02-12 16:25:29 +11:00 committed by Michael Ellerman
parent fc81de6310
commit 7e73a3b7f3

View File

@ -452,5 +452,6 @@ void __init opal_platform_dump_init(void)
return;
}
opal_dump_resend_notification();
if (opal_check_token(OPAL_DUMP_RESEND))
opal_dump_resend_notification();
}