diff options
author | Nishanth Aravamudan <nacc@us.ibm.com> | 2005-11-07 04:01:12 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-07 10:53:56 -0500 |
commit | 28faa4298ec069d1de4f54597f963be8ef35e706 (patch) | |
tree | c8b1bfd85c7e24247a7b7ce5cb872a470f284d37 | |
parent | 9e173c031a7542b1f66b6da853772e5de1804399 (diff) |
[PATCH] m68k: fix-up schedule_timeout() usage
Use schedule_timeout_interruptible() instead of
set_current_state()/schedule_timeout() to reduce kernel size.
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Cc: <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | arch/m68k/atari/time.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/m68k/atari/time.c b/arch/m68k/atari/time.c index 6df7fb60dfea..e79bbc94216d 100644 --- a/arch/m68k/atari/time.c +++ b/arch/m68k/atari/time.c | |||
@@ -212,10 +212,8 @@ int atari_tt_hwclk( int op, struct rtc_time *t ) | |||
212 | * additionally the RTC_SET bit is set to prevent an update cycle. | 212 | * additionally the RTC_SET bit is set to prevent an update cycle. |
213 | */ | 213 | */ |
214 | 214 | ||
215 | while( RTC_READ(RTC_FREQ_SELECT) & RTC_UIP ) { | 215 | while( RTC_READ(RTC_FREQ_SELECT) & RTC_UIP ) |
216 | current->state = TASK_INTERRUPTIBLE; | 216 | schedule_timeout_interruptible(HWCLK_POLL_INTERVAL); |
217 | schedule_timeout(HWCLK_POLL_INTERVAL); | ||
218 | } | ||
219 | 217 | ||
220 | local_irq_save(flags); | 218 | local_irq_save(flags); |
221 | RTC_WRITE( RTC_CONTROL, ctrl | RTC_SET ); | 219 | RTC_WRITE( RTC_CONTROL, ctrl | RTC_SET ); |