From: Jan Kiszka <[email protected]>

Also according to Linux code, only iTCO v3 uses a 1 s tick, all
others 0.6 s.

Reported-by: Venkata Sai Ganesh Deety <[email protected]>
Signed-off-by: Jan Kiszka <[email protected]>
---
 drivers/watchdog/itco.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/watchdog/itco.c b/drivers/watchdog/itco.c
index 4af70e2..ac92266 100644
--- a/drivers/watchdog/itco.c
+++ b/drivers/watchdog/itco.c
@@ -148,7 +148,7 @@ static BOOLEAN itco_supported(UINT16 pci_device_id, UINT8 
*index)
 }
 
 static UINTN get_timeout_value(UINT32 iTCO_version, UINTN seconds){
-       return iTCO_version > ITCO_V2 ? seconds : ((seconds * 10 ) / 6);
+       return iTCO_version == ITCO_V3 ? seconds : ((seconds * 10 ) / 6);
 }
 
 static UINT32 get_pm_base(EFI_PCI_IO *pci_io, iTCO_info *itco)
-- 
2.16.4


-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux

-- 
You received this message because you are subscribed to the Google Groups "EFI 
Boot Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/efibootguard-dev/2f6ad8a8-95b0-ec81-25ec-db2a9b62a587%40siemens.com.

Reply via email to