Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 287460
b: refs/heads/master
c: 3310225
h: refs/heads/master
v: v3
  • Loading branch information
Wu Fengguang committed Feb 1, 2012
1 parent b39e6be commit 144f170
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 15eb77a07c714ac80201abd0a9568888bcee6276
refs/heads/master: 3310225dfc71a35a2cc9340c15c0e08b14b3c754
4 changes: 4 additions & 0 deletions trunk/include/linux/proportions.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ void prop_inc_percpu(struct prop_descriptor *pd, struct prop_local_percpu *pl)
* Limit the time part in order to ensure there are some bits left for the
* cycle counter and fraction multiply.
*/
#if BITS_PER_LONG == 32
#define PROP_MAX_SHIFT (3*BITS_PER_LONG/4)
#else
#define PROP_MAX_SHIFT (BITS_PER_LONG/2)
#endif

#define PROP_FRAC_SHIFT (BITS_PER_LONG - PROP_MAX_SHIFT - 1)
#define PROP_FRAC_BASE (1UL << PROP_FRAC_SHIFT)
Expand Down

0 comments on commit 144f170

Please sign in to comment.