mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
conditionally define U32_MAX
The symbol U32_MAX is defined in several spots. Change these definitions to be conditional. This is in preparation for the next patch, which centralizes the definition in <linux/kernel.h>. Signed-off-by: Alex Elder <[email protected]> Cc: Sage Weil <[email protected]> Cc: David Miller <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
a6ce7114ee
commit
77719536dc
3 changed files with 6 additions and 0 deletions
|
|
@ -23,7 +23,9 @@
|
|||
#define ALPHA_MIN ((3*ALPHA_SCALE)/10) /* ~0.3 */
|
||||
#define ALPHA_MAX (10*ALPHA_SCALE) /* 10.0 */
|
||||
#define ALPHA_BASE ALPHA_SCALE /* 1.0 */
|
||||
#ifndef U32_MAX
|
||||
#define U32_MAX ((u32)~0U)
|
||||
#endif /* !U32_MAX */
|
||||
#define RTT_MAX (U32_MAX / ALPHA_MAX) /* 3.3 secs */
|
||||
|
||||
#define BETA_SHIFT 6
|
||||
|
|
|
|||
Loading…
Reference in a new issue