Skip to content

Commit

Permalink
floppy: initialize debug jiffies offset
Browse files Browse the repository at this point in the history
Set debug jiffies offset at initialization.  Avoids wierd values showing
up if debugging enabled.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
  • Loading branch information
Stephen Hemminger authored and Jens Axboe committed Aug 7, 2010
1 parent f3bcb14 commit 285203c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/block/floppy.c
Original file line number Diff line number Diff line change
Expand Up @@ -4175,6 +4175,9 @@ static int __init floppy_init(void)
int i, unit, drive;
int err, dr;

set_debugt();
interruptjiffies = resultjiffies = jiffies;

#if defined(CONFIG_PPC)
if (check_legacy_ioport(FDC1))
return -ENODEV;
Expand Down

0 comments on commit 285203c

Please sign in to comment.