summaryrefslogtreecommitdiffstats
path: root/fs/pstore/ram.c
diff options
context:
space:
mode:
authorWang Long <long.wanglong@huawei.com>2015-05-21 09:52:29 -0700
committerTony Luck <tony.luck@intel.com>2015-05-21 09:52:29 -0700
commit078550569eafc6631d333488045159badbeb911a (patch)
tree08ce2a2ffee499e6f1145a371ee1a7c95899b933 /fs/pstore/ram.c
parente036bd330d21e929e94ed4d5432f9d279b19ce47 (diff)
downloadtalos-obmc-linux-078550569eafc6631d333488045159badbeb911a.tar.gz
talos-obmc-linux-078550569eafc6631d333488045159badbeb911a.zip
ramoops: make it possible to change mem_type param.
If we set ramoops.mem_type=1 in command line, the current code can not change mem_type to 1, because it is assigned to 0 in function ramoops_register_dummy. This patch make it possible to change mem_type parameter in command line. Signed-off-by: Wang Long <long.wanglong@huawei.com> Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'fs/pstore/ram.c')
-rw-r--r--fs/pstore/ram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c
index d84ce222c516..6c26c4daaec9 100644
--- a/fs/pstore/ram.c
+++ b/fs/pstore/ram.c
@@ -622,7 +622,7 @@ static void ramoops_register_dummy(void)
dummy_data->mem_size = mem_size;
dummy_data->mem_address = mem_address;
- dummy_data->mem_type = 0;
+ dummy_data->mem_type = mem_type;
dummy_data->record_size = record_size;
dummy_data->console_size = ramoops_console_size;
dummy_data->ftrace_size = ramoops_ftrace_size;
OpenPOWER on IntegriCloud