mirror of https://gitee.com/openkylin/linux.git
[PATCH] ieee1394: 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: Ben Collins <bcollins@debian.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
01a527ec7c
commit
4de4ebc6d8
|
@ -320,8 +320,7 @@ static void ohci1394_stop_it_ctx(struct ti_ohci *ohci, int ctx, int synchronous)
|
||||||
if ((control & OHCI1394_CONTEXT_ACTIVE) == 0)
|
if ((control & OHCI1394_CONTEXT_ACTIVE) == 0)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
set_current_state(TASK_INTERRUPTIBLE);
|
schedule_timeout_interruptible(1);
|
||||||
schedule_timeout(1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue