diff options
author | Clark Williams <williams@redhat.com> | 2012-02-23 21:33:05 -0600 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2012-02-23 21:33:05 -0600 |
commit | a0c034c3726715d1928b301ddd43c51799c0c07a (patch) | |
tree | 76e78b4646ca0560d8cd0ee041a8bde9a5269c8c /include/linux/proportions.h | |
parent | 086290148fc37d7f2eccb7026b18fb9539ec7820 (diff) | |
parent | 9d0231c207faeda051cf54c1a64e1a147d2187fa (diff) |
Merge commit 'v3.2.7' into rt-3.2.7-rt13v3.2.7-rt13
Diffstat (limited to 'include/linux/proportions.h')
-rw-r--r-- | include/linux/proportions.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/proportions.h b/include/linux/proportions.h index ef35bb73f69b..26a8a4ed9b07 100644 --- a/include/linux/proportions.h +++ b/include/linux/proportions.h @@ -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) |