Skip to content

Commit

Permalink
percpu: fix a mismatch between code and comment
Browse files Browse the repository at this point in the history
When pcpu_build_alloc_info() searches best_upa value, it ignores current value
if the number of waste units exceeds 1/3 of the number of total cpus. But the
comment on the code says that it will ignore if wastage is over 25%.
Modify the comment.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
  • Loading branch information
Namhyung Kim authored and Tejun Heo committed Aug 27, 2010
1 parent a002d14 commit 54157c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/percpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1164,7 +1164,7 @@ static struct pcpu_alloc_info * __init pcpu_build_alloc_info(
}

/*
* Don't accept if wastage is over 25%. The
* Don't accept if wastage is over 1/3. The
* greater-than comparison ensures upa==1 always
* passes the following check.
*/
Expand Down

0 comments on commit 54157c4

Please sign in to comment.