diff options
| author | David Howells <[email protected]> | 2006-12-08 10:37:51 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2006-12-08 16:28:51 +0000 |
| commit | 312a0c170945b49f319960afd2e492c05f9dd551 (patch) | |
| tree | f3c122cc65d18bc647b45d89b3a8d0fb8492422b /fs/proc/array.c | |
| parent | [PATCH] LOG2: Implement a general integer log2 facility in the kernel (diff) | |
| download | kernel-312a0c170945b49f319960afd2e492c05f9dd551.tar.gz kernel-312a0c170945b49f319960afd2e492c05f9dd551.zip | |
[PATCH] LOG2: Alter roundup_pow_of_two() so that it can use a ilog2() on a constant
Alter roundup_pow_of_two() so that it can make use of ilog2() on a constant to
produce a constant value, retaining the ability for an arch to override it in
the non-const case.
This permits the function to be used to initialise variables.
Signed-off-by: David Howells <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Cc: Paul Mackerras <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions
