diff options
author | Anton Vorontsov <anton.vorontsov@linaro.org> | 2012-07-09 20:03:19 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-07-17 12:46:52 -0400 |
commit | 5ca5d4e61d0cac15f36160ab48425c6e43bf2e2f (patch) | |
tree | 7e35f66cc7863798f32e96fb2062b6006352dc04 /include/linux/pstore_ram.h | |
parent | 4a53ffae6afc94bab803087245b3b45e712c21c8 (diff) |
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>
Diffstat (limited to 'include/linux/pstore_ram.h')
-rw-r--r-- | include/linux/pstore_ram.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/pstore_ram.h b/include/linux/pstore_ram.h index a0975c02194a..94b79f173365 100644 --- a/include/linux/pstore_ram.h +++ b/include/linux/pstore_ram.h | |||
@@ -48,7 +48,7 @@ struct persistent_ram_zone { | |||
48 | 48 | ||
49 | struct persistent_ram_zone * __devinit persistent_ram_new(phys_addr_t start, | 49 | struct persistent_ram_zone * __devinit persistent_ram_new(phys_addr_t start, |
50 | size_t size, | 50 | size_t size, |
51 | bool ecc); | 51 | int ecc_size); |
52 | void persistent_ram_free(struct persistent_ram_zone *prz); | 52 | void persistent_ram_free(struct persistent_ram_zone *prz); |
53 | void persistent_ram_zap(struct persistent_ram_zone *prz); | 53 | void persistent_ram_zap(struct persistent_ram_zone *prz); |
54 | 54 | ||
@@ -74,7 +74,7 @@ struct ramoops_platform_data { | |||
74 | unsigned long record_size; | 74 | unsigned long record_size; |
75 | unsigned long console_size; | 75 | unsigned long console_size; |
76 | int dump_oops; | 76 | int dump_oops; |
77 | bool ecc; | 77 | int ecc_size; |
78 | }; | 78 | }; |
79 | 79 | ||
80 | #endif | 80 | #endif |