diff options
Diffstat (limited to 'arch/x86/machine/pit.c')
-rw-r--r-- | arch/x86/machine/pit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/machine/pit.c b/arch/x86/machine/pit.c index ea7a1a58..d3fece51 100644 --- a/arch/x86/machine/pit.c +++ b/arch/x86/machine/pit.c @@ -80,8 +80,9 @@ pit_delay(unsigned long usecs) diff = prev - count; prev = count; - if (diff < 0) + if (diff < 0) { diff += PIT_MAX_COUNT; + } total -= diff; } while (total > 0); |