* [patch 1/1] drivers/cdrom/sbpcd.c: replace direct assignment with set_current_state()
@ 2005-05-13 22:23 domen
0 siblings, 0 replies; 2+ messages in thread
From: domen @ 2005-05-13 22:23 UTC (permalink / raw)
To: emoenke; +Cc: linux-kernel, Christophe Lucas, domen
[-- Attachment #1: set_current_state-drivers_cdrom_sbpcd --]
[-- Type: text/plain, Size: 702 bytes --]
From: Christophe Lucas <clucas@rotomalug.org>
Use set_current_state() instead of direct assignment of
current->state.
Signed-off-by: Christophe Lucas <clucas@rotomalug.org>
Signed-off-by: Domen Puncer <domen@coderock.org>
---
sbpcd.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: quilt/drivers/cdrom/sbpcd.c
===================================================================
--- quilt.orig/drivers/cdrom/sbpcd.c
+++ quilt/drivers/cdrom/sbpcd.c
@@ -830,7 +830,7 @@ static void mark_timeout_audio(u_long i)
static void sbp_sleep(u_int time)
{
sti();
- current->state = TASK_INTERRUPTIBLE;
+ set_current_state(TASK_INTERRUPTIBLE);
schedule_timeout(time);
sti();
}
--
^ permalink raw reply [flat|nested] 2+ messages in thread* [patch 1/1] drivers/cdrom/sbpcd.c: replace direct assignment with set_current_state()
@ 2005-07-07 21:30 domen
0 siblings, 0 replies; 2+ messages in thread
From: domen @ 2005-07-07 21:30 UTC (permalink / raw)
To: emoenke; +Cc: linux-kernel, Christophe Lucas, domen
[-- Attachment #1: set_current_state-drivers_cdrom_sbpcd --]
[-- Type: text/plain, Size: 702 bytes --]
From: Christophe Lucas <clucas@rotomalug.org>
Use set_current_state() instead of direct assignment of
current->state.
Signed-off-by: Christophe Lucas <clucas@rotomalug.org>
Signed-off-by: Domen Puncer <domen@coderock.org>
---
sbpcd.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: quilt/drivers/cdrom/sbpcd.c
===================================================================
--- quilt.orig/drivers/cdrom/sbpcd.c
+++ quilt/drivers/cdrom/sbpcd.c
@@ -830,7 +830,7 @@ static void mark_timeout_audio(u_long i)
static void sbp_sleep(u_int time)
{
sti();
- current->state = TASK_INTERRUPTIBLE;
+ set_current_state(TASK_INTERRUPTIBLE);
schedule_timeout(time);
sti();
}
--
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-07-07 21:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-13 22:23 [patch 1/1] drivers/cdrom/sbpcd.c: replace direct assignment with set_current_state() domen
-- strict thread matches above, loose matches on Subject: below --
2005-07-07 21:30 domen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox