Description: Use schedule_timeout_interruptible() instead of
set_current_state()/schedule_timeout() to reduce kernel size.
Signed-off-by: Nishanth Aravamudan <[EMAIL PROTECTED]>
---
arch/m68k/atari/time.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff -urpN 2.6.13-rc5-mm1/arch/m68k/atari/time.c
2.6.13-rc5-mm1-dev/arch/m68k/atari/time.c
--- 2.6.13-rc5-mm1/arch/m68k/atari/time.c 2005-03-01 23:38:18.000000000
-0800
+++ 2.6.13-rc5-mm1-dev/arch/m68k/atari/time.c 2005-08-08 13:53:37.000000000
-0700
@@ -212,10 +212,8 @@ int atari_tt_hwclk( int op, struct rtc_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 );
-
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html