opal/hmi: Don't retry TOD recovery if it is already in failed state.
opal/hmi: Don't retry TOD recovery if it is already in failed state.

On TOD failure, all cores/thread receives HMI and very first thread that
gets interrupt fixes the TOD where as others just resets the respective
HMER error bit and return. But when TOD is unrecoverable, all the threads
try to do TOD recovery one by one causing threads to spend more time inside
opal. Set a global flag when TOD is unrecoverable so that rest of the
threads go back to linux immediately avoiding lock ups in system
reboot/panic path.

Signed-off-by: Mahesh Salgaonkar <6a890e1065a1d4e8df9dcf1d9a2c9c740bbcf8aa@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <ec31ab75ddf977353c8f660f92ea8b23f64aef25@linux.ibm.com>

shenki/skiboot,qemu/skiboot,open-power/skiboot,qemu/skiboot,shenki/skiboot,open-power/skiboot,stewart-ibm/skiboot,qemu/skiboot,stewart-ibm/skiboot,legoater/skiboot,open-power/skiboot,legoater/skiboot,open-power/skiboot,legoater/skiboot,stewart-ibm/skiboot,qemu/skiboot,legoater/skiboot,legoater/skiboot,qemu/skiboot,shenki/skiboot,open-power/skiboot,shenki/skiboot,shenki/skiboot