diff options
| author | Martin Bundgaard <martin@mindflux.org> | 2013-03-14 14:34:35 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2013-04-10 13:06:26 -0400 |
| commit | 7e9a2f0a080ba2f247559e95eb0df7072bede18a (patch) | |
| tree | 79dd405ef05a480d4950fd864719c9f4a3aaa247 | |
| parent | cd69aa6b383c6a6373bff2204190cadf451ebcc3 (diff) | |
x86/mm/numa: Simplify some bit mangling
Minor. Reordered a few lines to lose a superfluous OR operation.
Signed-off-by: Martin Bundgaard <martin@mindflux.org>
Link: http://lkml.kernel.org/r/1363286075-62615-1-git-send-email-martin@mindflux.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
| -rw-r--r-- | arch/x86/mm/amdtopology.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/mm/amdtopology.c b/arch/x86/mm/amdtopology.c index 5247d01329ca..2ca15b59fb3f 100644 --- a/arch/x86/mm/amdtopology.c +++ b/arch/x86/mm/amdtopology.c | |||
| @@ -130,9 +130,8 @@ int __init amd_numa_init(void) | |||
| 130 | } | 130 | } |
| 131 | 131 | ||
| 132 | limit >>= 16; | 132 | limit >>= 16; |
| 133 | limit <<= 24; | ||
| 134 | limit |= (1<<24)-1; | ||
| 135 | limit++; | 133 | limit++; |
| 134 | limit <<= 24; | ||
| 136 | 135 | ||
| 137 | if (limit > end) | 136 | if (limit > end) |
| 138 | limit = end; | 137 | limit = end; |
