This source file includes following definitions.
- kmsg_dump_opal_console_flush
- opal_kmsg_init
1
2
3
4
5
6
7
8
9
10 #include <linux/kmsg_dump.h>
11
12 #include <asm/opal.h>
13 #include <asm/opal-api.h>
14
15
16
17
18
19
20
21
22 static void kmsg_dump_opal_console_flush(struct kmsg_dumper *dumper,
23 enum kmsg_dump_reason reason)
24 {
25
26
27
28
29 if (reason != KMSG_DUMP_PANIC)
30 return;
31
32 opal_flush_console(0);
33 }
34
35 static struct kmsg_dumper opal_kmsg_dumper = {
36 .dump = kmsg_dump_opal_console_flush
37 };
38
39 void __init opal_kmsg_init(void)
40 {
41 int rc;
42
43
44 rc = kmsg_dump_register(&opal_kmsg_dumper);
45 if (rc != 0)
46 pr_err("opal: kmsg_dump_register failed; returned %d\n", rc);
47 }