Home
last modified time | relevance | path

Searched hist:d25a9dda (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/char/
H A Dvirtio_console.cd25a9dda Wed Sep 14 02:36:43 CDT 2011 Amit Shah <amit.shah@redhat.com> virtio: console: make get_inbuf() return port->inbuf if present

Instead of pulling in a buffer from the vq each time it's called,
get_inbuf() now checks if the current active buffer, in port->inbuf is
valid. If it is, just returns a pointer to it. This ends up
simplifying a lot of code calling get_inbuf() since the check for
port->inbuf being valid was done by all the callers.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
d25a9dda Wed Sep 14 02:36:43 CDT 2011 Amit Shah <amit.shah@redhat.com> virtio: console: make get_inbuf() return port->inbuf if present

Instead of pulling in a buffer from the vq each time it's called,
get_inbuf() now checks if the current active buffer, in port->inbuf is
valid. If it is, just returns a pointer to it. This ends up
simplifying a lot of code calling get_inbuf() since the check for
port->inbuf being valid was done by all the callers.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>