Skip to content

Commit

Permalink
pstore/ram: remove the power of buffer size limitation
Browse files Browse the repository at this point in the history
There doesn't appear to be any reason for the overall pstore RAM buffer to
be a power of 2 size, so remove it. The individual console, ftrace and oops
buffers are still a power of 2 size.

Signed-off-by: Rob Herring <[email protected]>
Acked-by: Anton Vorontsov <[email protected]>
Signed-off-by: Tony Luck <[email protected]>
  • Loading branch information
Rob Herring authored and aegl committed Jun 14, 2013
1 parent 0405a5c commit 2644665
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/pstore/ram.c
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,6 @@ static int ramoops_probe(struct platform_device *pdev)
goto fail_out;
}

if (!is_power_of_2(pdata->mem_size))
pdata->mem_size = rounddown_pow_of_two(pdata->mem_size);
if (!is_power_of_2(pdata->record_size))
pdata->record_size = rounddown_pow_of_two(pdata->record_size);
if (!is_power_of_2(pdata->console_size))
Expand Down

0 comments on commit 2644665

Please sign in to comment.