diff options
author | Namhyung Kim <namhyung@gmail.com> | 2010-08-10 22:19:19 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2010-08-27 05:36:19 -0400 |
commit | 54157c44471f5e266508ac08d270f2bc5857e8bb (patch) | |
tree | ecc31a0fee9ffc75875e51b71ae07010fb4bc07b /mm/percpu.c | |
parent | a002d148426f40bc2b7dc066982eb177cdebeaaa (diff) |
percpu: fix a mismatch between code and comment
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>
Diffstat (limited to 'mm/percpu.c')
-rw-r--r-- | mm/percpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/percpu.c b/mm/percpu.c index a1830d8e3318..58c572b18b07 100644 --- a/mm/percpu.c +++ b/mm/percpu.c | |||
@@ -1164,7 +1164,7 @@ static struct pcpu_alloc_info * __init pcpu_build_alloc_info( | |||
1164 | } | 1164 | } |
1165 | 1165 | ||
1166 | /* | 1166 | /* |
1167 | * Don't accept if wastage is over 25%. The | 1167 | * Don't accept if wastage is over 1/3. The |
1168 | * greater-than comparison ensures upa==1 always | 1168 | * greater-than comparison ensures upa==1 always |
1169 | * passes the following check. | 1169 | * passes the following check. |
1170 | */ | 1170 | */ |