public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: domen@coderock.org
To: akpm@osdl.org
Cc: linux-kernel@vger.kernel.org,
	Christophe Lucas <clucas@rotomalug.org>,
	domen@coderock.org
Subject: [patch 2/3] drivers/char/hw_random.c: replace direct assignment with set_current_state()
Date: Sat, 14 May 2005 00:24:07 +0200	[thread overview]
Message-ID: <20050513222409.165372000@nd47.coderock.org> (raw)

[-- Attachment #1: set_current_state-drivers_char_hw_random --]
[-- Type: text/plain, Size: 701 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>


---
 hw_random.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

Index: quilt/drivers/char/hw_random.c
===================================================================
--- quilt.orig/drivers/char/hw_random.c
+++ quilt/drivers/char/hw_random.c
@@ -514,7 +514,7 @@ static ssize_t rng_dev_read (struct file
 
 		if(need_resched())
 		{
-			current->state = TASK_INTERRUPTIBLE;
+			set_current_state(TASK_INTERRUPTIBLE);
 			schedule_timeout(1);
 		}
 		else

--

             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:24 domen [this message]
2005-05-14  0:22 ` [patch 2/3] drivers/char/hw_random.c: replace direct assignment with set_current_state() Jeff Garzik

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=20050513222409.165372000@nd47.coderock.org \
    --to=domen@coderock.org \
    --cc=akpm@osdl.org \
    --cc=clucas@rotomalug.org \
    --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