Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 28faa429 authored by Nishanth Aravamudan's avatar Nishanth Aravamudan Committed by Linus Torvalds
Browse files

[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: default avatarNishanth Aravamudan <nacc@us.ibm.com>
Cc: <geert@linux-m68k.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 9e173c03
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -212,10 +212,8 @@ 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 ) {
        current->state = TASK_INTERRUPTIBLE;
        schedule_timeout(HWCLK_POLL_INTERVAL);
    }
    while( RTC_READ(RTC_FREQ_SELECT) & RTC_UIP )
        schedule_timeout_interruptible(HWCLK_POLL_INTERVAL);

    local_irq_save(flags);
    RTC_WRITE( RTC_CONTROL, ctrl | RTC_SET );