aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/hd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/hd.c b/drivers/block/hd.c
index 5116c65c07cb..b9868ad0278d 100644
--- a/drivers/block/hd.c
+++ b/drivers/block/hd.c
@@ -165,12 +165,12 @@ unsigned long read_timer(void)
165 unsigned long t, flags; 165 unsigned long t, flags;
166 int i; 166 int i;
167 167
168 spin_lock_irqsave(&i8253_lock, flags); 168 raw_spin_lock_irqsave(&i8253_lock, flags);
169 t = jiffies * 11932; 169 t = jiffies * 11932;
170 outb_p(0, 0x43); 170 outb_p(0, 0x43);
171 i = inb_p(0x40); 171 i = inb_p(0x40);
172 i |= inb(0x40) << 8; 172 i |= inb(0x40) << 8;
173 spin_unlock_irqrestore(&i8253_lock, flags); 173 raw_spin_unlock_irqrestore(&i8253_lock, flags);
174 return(t - i); 174 return(t - i);
175} 175}
176#endif 176#endif