| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * kmsg dumper that ensures the OPAL console fully flushes panic messages |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Author: Russell Currey <ruscur@russell.cc> |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Copyright 2015 IBM Corporation. |
|---|
| 7 | | - * |
|---|
| 8 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 9 | | - * under the terms of the GNU General Public License as published by the |
|---|
| 10 | | - * Free Software Foundation; either version 2 of the License, or (at your |
|---|
| 11 | | - * option) any later version. |
|---|
| 12 | 8 | */ |
|---|
| 13 | 9 | |
|---|
| 14 | 10 | #include <linux/kmsg_dump.h> |
|---|
| .. | .. |
|---|
| 24 | 20 | * message, it just ensures that OPAL completely flushes the console buffer. |
|---|
| 25 | 21 | */ |
|---|
| 26 | 22 | static void kmsg_dump_opal_console_flush(struct kmsg_dumper *dumper, |
|---|
| 27 | | - enum kmsg_dump_reason reason) |
|---|
| 23 | + enum kmsg_dump_reason reason, |
|---|
| 24 | + struct kmsg_dumper_iter *iter) |
|---|
| 28 | 25 | { |
|---|
| 29 | 26 | /* |
|---|
| 30 | 27 | * Outside of a panic context the pollers will continue to run, |
|---|