aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorZhang Yanfei <[email protected]>2013-07-08 16:00:08 -0700
committerLinus Torvalds <[email protected]>2013-07-09 10:33:22 -0700
commit345606d42971fc4ed164fbabac118708d51b8e0a (patch)
tree23bd3d638b69536f11360866013cc462e5788043 /tools/perf/scripts/python/bin
parentb21fbccd4b8aba805cbc231998ec7bf83616a79e (diff)
mm/page_alloc.c: remove unlikely() from the current_order test
In __rmqueue_fallback(), current_order loops down from MAX_ORDER - 1 to the order passed. MAX_ORDER is typically 11 and pageblock_order is typically 9 on x86. Integer division truncates, so pageblock_order / 2 is 4. For the first eight iterations, it's guaranteed that current_order >= pageblock_order / 2 if it even gets that far! So just remove the unlikely(), it's completely bogus. Signed-off-by: Zhang Yanfei <[email protected]> Suggested-by: David Rientjes <[email protected]> Acked-by: David Rientjes <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions