Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Nishanth Aravamudan and committed by
Linus Torvalds
28faa429 9e173c03

+2 -4
+2 -4
arch/m68k/atari/time.c
··· 212 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 ) { 216 - current->state = TASK_INTERRUPTIBLE; 217 - schedule_timeout(HWCLK_POLL_INTERVAL); 218 - } 215 + while( RTC_READ(RTC_FREQ_SELECT) & RTC_UIP ) 216 + schedule_timeout_interruptible(HWCLK_POLL_INTERVAL); 219 217 220 218 local_irq_save(flags); 221 219 RTC_WRITE( RTC_CONTROL, ctrl | RTC_SET );