[PATCH] m68k/Atari: Interrupt updates
Misc Atari fixes: - initialize correct number of atari irqs - silence vbl interrupt until it's used by atafb - use mdelay() to read clock if necessary Signed-off-by: Roman Zippel <zippel@linux-m68k.org> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:

committed by
Linus Torvalds

parent
da96d0b58a
commit
69961c3752
@@ -16,6 +16,7 @@
|
||||
#include <linux/init.h>
|
||||
#include <linux/rtc.h>
|
||||
#include <linux/bcd.h>
|
||||
#include <linux/delay.h>
|
||||
|
||||
#include <asm/atariints.h>
|
||||
|
||||
@@ -212,8 +213,12 @@ int atari_tt_hwclk( int op, struct rtc_time *t )
|
||||
* additionally the RTC_SET bit is set to prevent an update cycle.
|
||||
*/
|
||||
|
||||
while( RTC_READ(RTC_FREQ_SELECT) & RTC_UIP )
|
||||
schedule_timeout_interruptible(HWCLK_POLL_INTERVAL);
|
||||
while( RTC_READ(RTC_FREQ_SELECT) & RTC_UIP ) {
|
||||
if (in_atomic() || irqs_disabled())
|
||||
mdelay(1);
|
||||
else
|
||||
schedule_timeout_interruptible(HWCLK_POLL_INTERVAL);
|
||||
}
|
||||
|
||||
local_irq_save(flags);
|
||||
RTC_WRITE( RTC_CONTROL, ctrl | RTC_SET );
|
||||
|
Reference in New Issue
Block a user