mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 06:33:07 +00:00
pstore/ram: remove the power of buffer size limitation
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 <rob.herring@calxeda.com> Acked-by: Anton Vorontsov <anton@enomsg.org> Signed-off-by: Tony Luck <tony.luck@intel.com>
This commit is contained in:
parent
0405a5cec3
commit
2644665458
1 changed files with 0 additions and 2 deletions
|
@ -399,8 +399,6 @@ static int ramoops_probe(struct platform_device *pdev)
|
||||||
goto fail_out;
|
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))
|
if (!is_power_of_2(pdata->record_size))
|
||||||
pdata->record_size = rounddown_pow_of_two(pdata->record_size);
|
pdata->record_size = rounddown_pow_of_two(pdata->record_size);
|
||||||
if (!is_power_of_2(pdata->console_size))
|
if (!is_power_of_2(pdata->console_size))
|
||||||
|
|
Loading…
Reference in a new issue