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]>
Signed-off-by: Pranav Vashi <[email protected]>
  • Loading branch information
Rob Herring authored and neobuddy89 committed Jul 15, 2015
1 parent 07ac14e commit 763ddbd
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 @@ -543,8 +543,6 @@ static int ramoops_probe(struct platform_device *pdev)
goto fail_out;
}

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

0 comments on commit 763ddbd

Please sign in to comment.