diff mbox

[08/14] console: add dummy_console_flush()

Message ID 1479445312-12382-9-git-send-email-oohall@gmail.com
State Superseded
Headers show

Commit Message

Oliver O'Halloran Nov. 18, 2016, 5:01 a.m. UTC
Define a driver specific flush opal call in preperation for removing
the con_ops->flush() operation.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
---
 core/console.c | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox

Patch

diff --git a/core/console.c b/core/console.c
index be5aa6211ce4..b053e491e351 100644
--- a/core/console.c
+++ b/core/console.c
@@ -373,6 +373,12 @@  static int64_t dummy_console_read(int64_t term_number, int64_t *length,
 }
 opal_call(OPAL_CONSOLE_READ, dummy_console_read, 3);
 
+static int64_t dummy_console_flush(int64_t term_number __unused)
+{
+	return OPAL_UNSUPPORTED;
+}
+opal_call(OPAL_CONSOLE_FLUSH, dummy_console_flush, 1);
+
 static void dummy_console_poll(void *data __unused)
 {
 	bool has_data = false;