projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c829c3
)
[PATCH] Add parentheses around arguments in the SH_DIV macro.
author
Uwe Zeisberger
<
[email protected]
>
Sun, 30 Jul 2006 10:04:02 +0000
(
03:04
-0700)
committer
Linus Torvalds
<
[email protected]
>
Mon, 31 Jul 2006 20:28:43 +0000
(13:28 -0700)
There is currently no affected user in the tree, but usage is less
surprising that way.
Signed-off-by: Uwe Zeisberger <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
include/linux/jiffies.h
patch
|
blob
|
history
diff --git
a/include/linux/jiffies.h
b/include/linux/jiffies.h
index 043376920f51af0aaa317459a8172b00c814dab0..329ebcffa106801f012472e281840c4756382f9e 100644
(file)
--- a/
include/linux/jiffies.h
+++ b/
include/linux/jiffies.h
@@
-47,8
+47,8
@@
* - (NOM / DEN) fits in (32 - LSH) bits.
* - (NOM % DEN) fits in (32 - LSH) bits.
*/
-#define SH_DIV(NOM,DEN,LSH) ( ((
NOM / DEN) << LSH)
\
- + (((
NOM % DEN) << LSH) + DEN / 2) / DEN
)
+#define SH_DIV(NOM,DEN,LSH) ( ((
(NOM) / (DEN)) << (LSH))
\
+ + (((
(NOM) % (DEN)) << (LSH)) + (DEN) / 2) / (DEN)
)
/* HZ is the requested value. ACTHZ is actual HZ ("<< 8" is for accuracy) */
#define ACTHZ (SH_DIV (CLOCK_TICK_RATE, LATCH, 8))