]> Git Repo - linux.git/commit
mm/page_alloc.c: simplify calculation of combined index of adjacent buddy lists
authorKyongHo Cho <[email protected]>
Thu, 13 Jan 2011 23:47:24 +0000 (15:47 -0800)
committerLinus Torvalds <[email protected]>
Fri, 14 Jan 2011 01:32:48 +0000 (17:32 -0800)
commit43506fad21ca3d8dc59e768ff458f7c5e5c01086
treeb594f240a780e3547341530fedabb6ac4735ff41
parent5520e89485252c759ee60d313e9422447659947b
mm/page_alloc.c: simplify calculation of combined index of adjacent buddy lists

The previous approach of calucation of combined index was

page_idx & ~(1 << order))

but we have same result with

page_idx & buddy_idx

This reduces instructions slightly as well as enhances readability.

[[email protected]: coding-style fixes]
[[email protected]: fix used-unintialised warning]
Signed-off-by: KyongHo Cho <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/page_alloc.c
This page took 0.057474 seconds and 4 git commands to generate.