mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
pstore/ram: Make ECC size configurable
This is now pretty straightforward: instead of using bool, just pass an integer. For backwards compatibility ramoops.ecc=1 means 16 bytes ECC (using 1 byte for ECC isn't much of use anyway). Suggested-by: Arve Hjønnevåg <arve@android.com> Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org> Acked-by: Kees Cook <keescook@chromium.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4a53ffae6a
commit
5ca5d4e61d
3 changed files with 24 additions and 17 deletions
|
@ -48,7 +48,7 @@ struct persistent_ram_zone {
|
|||
|
||||
struct persistent_ram_zone * __devinit persistent_ram_new(phys_addr_t start,
|
||||
size_t size,
|
||||
bool ecc);
|
||||
int ecc_size);
|
||||
void persistent_ram_free(struct persistent_ram_zone *prz);
|
||||
void persistent_ram_zap(struct persistent_ram_zone *prz);
|
||||
|
||||
|
@ -74,7 +74,7 @@ struct ramoops_platform_data {
|
|||
unsigned long record_size;
|
||||
unsigned long console_size;
|
||||
int dump_oops;
|
||||
bool ecc;
|
||||
int ecc_size;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue