opal/hmi: Stop flooding HMI event for TOD errors.
opal/hmi: Stop flooding HMI event for TOD errors.

Fix the issue where every thread on the chip sends HMI event to host for
TOD errors. TOD errors are reported to all the core/threads on the chip.
Any one thread can fix the error and send event. Rest of the threads don't
need to send HMI event unnecessarily.

This patch fixes this by modifying __chiptod_recover_tod_errors() function
to return -1 if no errors found. Without this change every thread that
see TFMR[51]=1 sends HMI event to the host kernel.

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

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