mirror of
https://github.com/torvalds/linux.git
synced 2024-11-08 21:21:47 +00:00
ced918eb74
i8253_lock needs to be a real spinlock in preempt-rt, i.e. it can not be converted to a sleeping lock. Convert it to raw_spinlock and fix up all users. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Ralf Baechle <ralf@linux-mips.org> Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Acked-by: Takashi Iwai <tiwai@suse.de> Cc: Jens Axboe <jens.axboe@oracle.com> LKML-Reference: <20100217163751.030764372@linutronix.de>
19 lines
352 B
C
19 lines
352 B
C
#ifndef _ASM_X86_I8253_H
|
|
#define _ASM_X86_I8253_H
|
|
|
|
/* i8253A PIT registers */
|
|
#define PIT_MODE 0x43
|
|
#define PIT_CH0 0x40
|
|
#define PIT_CH2 0x42
|
|
|
|
extern raw_spinlock_t i8253_lock;
|
|
|
|
extern struct clock_event_device *global_clock_event;
|
|
|
|
extern void setup_pit_timer(void);
|
|
|
|
#define inb_pit inb_p
|
|
#define outb_pit outb_p
|
|
|
|
#endif /* _ASM_X86_I8253_H */
|