projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f0cff2
)
rk29: cru.h: make LOOP more accurate
author
黄涛
<huangtao@rock-chips.com>
Mon, 11 Jul 2011 12:15:57 +0000
(20:15 +0800)
committer
黄涛
<huangtao@rock-chips.com>
Mon, 11 Jul 2011 12:28:09 +0000
(20:28 +0800)
arch/arm/mach-rk29/include/mach/cru.h
patch
|
blob
|
history
diff --git
a/arch/arm/mach-rk29/include/mach/cru.h
b/arch/arm/mach-rk29/include/mach/cru.h
index 45281a9fd65fcd8330ea681d4bfd353fa6193114..5e38f3ea6735d6646b1d8542f7b528e86a568715 100644
(file)
--- a/
arch/arm/mach-rk29/include/mach/cru.h
+++ b/
arch/arm/mach-rk29/include/mach/cru.h
@@
-305,6
+305,6
@@
void cru_set_soft_reset(enum cru_soft_reset idx, bool on);
#define LOOPS_PER_USEC 13
#define LOOPS_PER_MSEC 12000
-#define LOOP(loops) do {
int i = loops; barrier(); while (i--
) barrier(); } while (0)
+#define LOOP(loops) do {
unsigned int i = loops; barrier(); while (--i
) barrier(); } while (0)
#endif