From: miles@mcspd15.ucom.lsi.nec.co.jp (Miles Bader)
To: Linus Torvalds <torvalds@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH][v850] Make v850 __delay function handle a loop count of zero
Date: Fri, 6 Feb 2004 16:54:47 +0900 (JST) [thread overview]
Message-ID: <20040206075447.B796645A@mcspd15> (raw)
[In practice, this only seems to occur in odd debugging
situations, but it's quite annoying then.]
diff -ruN -X../cludes linux-2.6.2-uc0/include/asm-v850/delay.h linux-2.6.2-uc0-v850-20040206/include/asm-v850/delay.h
--- linux-2.6.2-uc0/include/asm-v850/delay.h 2002-11-05 11:25:31.000000000 +0900
+++ linux-2.6.2-uc0-v850-20040206/include/asm-v850/delay.h 2004-02-06 14:02:30.000000000 +0900
@@ -2,8 +2,8 @@
* include/asm-v850/delay.h -- Delay routines, using a pre-computed
* "loops_per_second" value
*
- * Copyright (C) 2001 NEC Corporation
- * Copyright (C) 2001 Miles Bader <miles@gnu.org>
+ * Copyright (C) 2001,03 NEC Corporation
+ * Copyright (C) 2001,03 Miles Bader <miles@gnu.org>
* Copyright (C) 1994 Hamish Macdonald
*
* This file is subject to the terms and conditions of the GNU General
@@ -18,8 +18,9 @@
extern __inline__ void __delay(unsigned long loops)
{
- __asm__ __volatile__ ("1: add -1, %0; bnz 1b"
- : "=r" (loops) : "0" (loops));
+ if (loops)
+ __asm__ __volatile__ ("1: add -1, %0; bnz 1b"
+ : "=r" (loops) : "0" (loops));
}
/*
next reply other threads:[~2004-02-06 7:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-06 7:54 Miles Bader [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-10-10 9:22 Miles Bader
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=20040206075447.B796645A@mcspd15 \
--to=miles@mcspd15.ucom.lsi.nec.co.jp \
--cc=linux-kernel@vger.kernel.org \
--cc=miles@gnu.org \
--cc=torvalds@osdl.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
all inboxes | Powered by JetHome®