All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jestin Stoffel <jstnstffl@gmail.com>
To: kernel-janitors@vger.kernel.org
Subject: [KJ] [PATCH]set_current_state cleanup in
Date: Fri, 06 Apr 2007 02:46:03 +0000	[thread overview]
Message-ID: <20070406024603.GB8199@crackpot> (raw)

From:  Jestin Stoffel <jstnstffl@gmail.com>

Replaced a couple current->state= with set_current_state

Signed-off-by:  Jestin Stoffel <jstnstffl@gmail.com>
---
--- linux-2.6.21-rc5/drivers/serial/68360serial.c.orig	2007-04-05 21:34:12.000000000 -0500
+++ linux-2.6.21-rc5/drivers/serial/68360serial.c	2007-04-05 21:35:17.000000000 -0500
@@ -1750,7 +1750,7 @@ static void rs_360_wait_until_sent(struc
 		else
 			bdp--;
 	} while (bdp->status & BD_SC_READY);
-	current->state = TASK_RUNNING;
+	set_current_state(TASK_RUNNING);
 #ifdef SERIAL_DEBUG_RS_WAIT_UNTIL_SENT
 	printk("lsr = %d (jiff=%lu)...done\n", lsr, jiffies);
 #endif
@@ -1880,7 +1880,7 @@ static int block_til_ready(struct tty_st
 #endif
 		schedule();
 	}
-	current->state = TASK_RUNNING;
+	set_current_state(TASK_RUNNING);
 	remove_wait_queue(&info->open_wait, &wait);
 	if (!tty_hung_up_p(filp))
 		state->count++;
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/kernel-janitors

             reply	other threads:[~2007-04-06  2:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-06  2:46 Jestin Stoffel [this message]
2007-04-06  2:55 ` [KJ] [PATCH]set_current_state cleanup in Jestin Stoffel

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=20070406024603.GB8199@crackpot \
    --to=jstnstffl@gmail.com \
    --cc=kernel-janitors@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.