From: domen@coderock.org
To: emoenke@gwdg.de
Cc: linux-kernel@vger.kernel.org,
Christophe Lucas <clucas@rotomalug.org>,
domen@coderock.org
Subject: [patch 1/1] drivers/cdrom/sbpcd.c: replace direct assignment with set_current_state()
Date: Sat, 14 May 2005 00:23:13 +0200 [thread overview]
Message-ID: <20050513222312.458729000@nd47.coderock.org> (raw)
[-- 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();
}
--
next reply other threads:[~2005-05-13 22:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-13 22:23 domen [this message]
2005-07-07 21:30 [patch 1/1] drivers/cdrom/sbpcd.c: replace direct assignment with set_current_state() domen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050513222312.458729000@nd47.coderock.org \
--to=domen@coderock.org \
--cc=clucas@rotomalug.org \
--cc=emoenke@gwdg.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).