[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAJd=RBB7sJC1cJCKRzzSuM5JgST3nF18g9vG7BQoLT=0iWmSBg@mail.gmail.com>
Date: Sun, 31 Jul 2011 08:57:25 +0800
From: Hillf Danton <dhillf@...il.com>
To: Ralf Baechle <ralf@...ux-mips.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH] MIPS: minor cleanups for octeon
It is just cleanup for two cases in the code, then it looks not ugly enough.
Signed-off-by: Hillf Danton <dhillf@...il.com>
---
arch/mips/include/asm/octeon/cvmx.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/mips/include/asm/octeon/cvmx.h
b/arch/mips/include/asm/octeon/cvmx.h
index 7e12867..e314c26 100644
--- a/arch/mips/include/asm/octeon/cvmx.h
+++ b/arch/mips/include/asm/octeon/cvmx.h
@@ -88,7 +88,8 @@ static inline uint32_t cvmx_get_proc_id(void)
*
* @bits: Number of bits in the mask
* Returns The mask
- */ static inline uint64_t cvmx_build_mask(uint64_t bits)
+ */
+static inline uint64_t cvmx_build_mask(uint64_t bits)
{
return ~((~0x0ull) << bits);
}
@@ -412,8 +413,7 @@ static inline uint64_t cvmx_get_cycle_global(void)
* 3) If #2 isn't true loop to #1 unless too much time has passed.
*/
#define CVMX_WAIT_FOR_FIELD64(address, type, field, op, value, timeout_usec)\
- ( \
-{ \
+({ \
int result; \
do { \
uint64_t done = cvmx_get_cycle() + (uint64_t)timeout_usec * \
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists