From: Russell King <rmk@arm.linux.org.uk>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] Alan says this needs fixing... (timer/cpu_relax)
Date: Sun, 21 Jul 2002 23:51:54 +0100 [thread overview]
Message-ID: <20020721235154.M26376@flint.arm.linux.org.uk> (raw)
While looking at some stuff, I noticed the following. Alan confirmed
that this patch is probably a good idea...
--- orig/kernel/timer.c Sun Jul 7 23:21:28 2002
+++ linux/kernel/timer.c Sun Jul 21 23:50:17 2002
@@ -176,7 +176,7 @@
#define timer_enter(t) do { running_timer = t; mb(); } while (0)
#define timer_exit() do { running_timer = NULL; } while (0)
#define timer_is_running(t) (running_timer == t)
-#define timer_synchronize(t) while (timer_is_running(t)) barrier()
+#define timer_synchronize(t) while (timer_is_running(t)) cpu_relax()
#else
#define timer_enter(t) do { } while (0)
#define timer_exit() do { } while (0)
--
Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux
http://www.arm.linux.org.uk/personal/aboutme.html
next reply other threads:[~2002-07-21 22:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-21 22:51 Russell King [this message]
2002-07-22 0:54 ` [PATCH] Alan says this needs fixing... (timer/cpu_relax) Alan Cox
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=20020721235154.M26376@flint.arm.linux.org.uk \
--to=rmk@arm.linux.org.uk \
--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