summaryrefslogtreecommitdiff
path: root/fs/pstore
diff options
context:
space:
mode:
authorArve Hjønnevåg <arve@android.com>2014-05-02 20:23:21 -0700
committerJohn Stultz <john.stultz@linaro.org>2016-02-16 13:54:11 -0800
commit75923a6f83dca0a2af7dad0c91fe45f0961d9406 (patch)
treebf04e7197b6b1c4400fe27b03fe3303767c0a00e /fs/pstore
parent57295ca64312242213a2adef0848b7f0c17deb29 (diff)
pstore/ram: Add ramoops_console_write_buf api
Allow writing into the ramoops console buffer. Change-Id: Iff0d69b562e4dae33ea7f8d19412227bebb17e47 Signed-off-by: Arve Hjønnevåg <arve@android.com>
Diffstat (limited to 'fs/pstore')
-rw-r--r--fs/pstore/ram.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c
index 319c3a60cfa5..2f4ddb8ca1eb 100644
--- a/fs/pstore/ram.c
+++ b/fs/pstore/ram.c
@@ -458,6 +458,12 @@ static int ramoops_init_prz(struct device *dev, struct ramoops_context *cxt,
return 0;
}
+void notrace ramoops_console_write_buf(const char *buf, size_t size)
+{
+ struct ramoops_context *cxt = &oops_cxt;
+ persistent_ram_write(cxt->cprz, buf, size);
+}
+
static int ramoops_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;