summaryrefslogtreecommitdiff
path: root/firmware/ata_idle_notify.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/ata_idle_notify.c')
-rw-r--r--firmware/ata_idle_notify.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/firmware/ata_idle_notify.c b/firmware/ata_idle_notify.c
index 17adbc1192..1fc6605ac6 100644
--- a/firmware/ata_idle_notify.c
+++ b/firmware/ata_idle_notify.c
@@ -77,8 +77,11 @@ bool call_ata_idle_notifys(bool force)
77 int i; 77 int i;
78 static int lock_until = 0; 78 static int lock_until = 0;
79 ata_idle_notify function; 79 ata_idle_notify function;
80 if (!force && TIME_BEFORE(current_tick,lock_until) ) 80 if (!force)
81 return false; 81 {
82 if (TIME_BEFORE(current_tick,lock_until) )
83 return false;
84 }
82 lock_until = current_tick + 30*HZ; 85 lock_until = current_tick + 30*HZ;
83 86
84 for (i = 0; i < MAX_ATA_CALLBACKS; i++) 87 for (i = 0; i < MAX_ATA_CALLBACKS; i++)