From: Felipe W Damasio <felipewd@terra.com.br>
To: mikep@linuxtr.net
Cc: linux-net@vger.kernel.org, netdev@oss.sgi.com, linux-tr@linuxtr.net
Subject: [PATCH] unneeded memory barrier in olympic tokenring driver
Date: Sun, 28 Sep 2003 18:57:08 -0300 [thread overview]
Message-ID: <3F775934.5080004@terra.com.br> (raw)
[-- Attachment #1: Type: text/plain, Size: 263 bytes --]
Hi Daniel,
Patch against 2.6.0-test6.
Removes 2 unneeded memory barriers when setting the current task to
TASK_RUNNING.
Please consider applying,
Felipe
--
It's most certainly GNU/Linux, not Linux. Read more at
http://www.gnu.org/gnu/why-gnu-linux.html
[-- Attachment #2: olympic-barrier.patch --]
[-- Type: text/plain, Size: 776 bytes --]
--- linux-2.6.0-test6/drivers/net/tokenring/olympic.c.orig Sun Sep 28 18:51:13 2003
+++ linux-2.6.0-test6/drivers/net/tokenring/olympic.c Sun Sep 28 18:51:36 2003
@@ -531,7 +531,7 @@
set_current_state(TASK_INTERRUPTIBLE) ;
}
remove_wait_queue(&olympic_priv->srb_wait,&wait) ;
- set_current_state(TASK_RUNNING) ;
+ __set_current_state(TASK_RUNNING) ;
olympic_priv->srb_queued = 0 ;
#if OLYMPIC_DEBUG
printk("init_srb(%p): ",init_srb);
@@ -1122,7 +1122,7 @@
set_current_state(TASK_INTERRUPTIBLE) ;
}
remove_wait_queue(&olympic_priv->srb_wait,&wait) ;
- set_current_state(TASK_RUNNING) ;
+ __set_current_state(TASK_RUNNING) ;
olympic_priv->rx_status_last_received++;
olympic_priv->rx_status_last_received&=OLYMPIC_RX_RING_SIZE-1;
reply other threads:[~2003-09-28 21:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=3F775934.5080004@terra.com.br \
--to=felipewd@terra.com.br \
--cc=linux-net@vger.kernel.org \
--cc=linux-tr@linuxtr.net \
--cc=mikep@linuxtr.net \
--cc=netdev@oss.sgi.com \
/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.