mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
[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>
This commit is contained in:
parent
9e173c031a
commit
28faa4298e
@ -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.
|
* additionally the RTC_SET bit is set to prevent an update cycle.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
while( RTC_READ(RTC_FREQ_SELECT) & RTC_UIP ) {
|
while( RTC_READ(RTC_FREQ_SELECT) & RTC_UIP )
|
||||||
current->state = TASK_INTERRUPTIBLE;
|
schedule_timeout_interruptible(HWCLK_POLL_INTERVAL);
|
||||||
schedule_timeout(HWCLK_POLL_INTERVAL);
|
|
||||||
}
|
|
||||||
|
|
||||||
local_irq_save(flags);
|
local_irq_save(flags);
|
||||||
RTC_WRITE( RTC_CONTROL, ctrl | RTC_SET );
|
RTC_WRITE( RTC_CONTROL, ctrl | RTC_SET );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user